What is the correct printf specifier for printing pid_t

Viewed 38748

I'm currently using a explicit cast to long and using %ld for printing pid_t, is there a specifier such as %z for size_t for pid_t?

If not what the best way of printing pid_t?

2 Answers
Related