Recently I came across the code for the "ps" Linux command which utilizes a "parsefmt" function to get information such as the PID, tty, and path. However, I am at a loss for how to use the function; I have included all the header functions from the actual ps.c file (https://opensource.apple.com/source/adv_cmds/adv_cmds-158/ps/ps.c.auto.html) and I am still getting the error:
implicit declaration of function 'parsefmt' is invalid in C99
If anyone could guide me on how to use this function, it would be greatly appreciated.