2

I cannot find the section for format specifiers in the C printf function. I've done a man printf on my Linux distro and it doesn't provide that information.

So far, I've just been googling everytime I need to find out a format. I'm sure that this question has been asked before on stackoverflow, but I cannot find it.

Al-Baraa El-Hag
  • 770
  • 6
  • 15

1 Answers1

5

The unix manual is divided into sections. The following are the first three:

  1. Command-line utilities (e.g. bash)
  2. System calls (e.g. open)
  3. C functions (e.g. fopen)

man printf returns the first match found, but you don't want information on the printf command-line utility; you want information on the printf C function. As such, you should be using

man 3 printf
ikegami
  • 367,544
  • 15
  • 269
  • 518