I have to move from using ps -Alf -p # to using ps -p # -o comm
because doing it repeatedly gives inconsistent results in C. I lose

Question : How can I get more than the 9 characters given to me
with ps -p # -o comm?

If I use ps -Alf -p # -o comm that also gives inconsistent results.

Thank you,
Christopher Lusardi