1

This question already has an answer here:

I installed manual doc for linux programmer on Ubuntu using Synaptic for French documentation. But when I run man printf to see the documentation of printf() in C library stdio.h, I dont get this. I get this:

PRINTF(1)                          Commandes                         PRINTF(1)
NOM
       Printf - Formater et afficher des données
SYNOPSIS
       printf FORMAT [PARAMÈTRE] ...
       printf OPTION

But I obtain the correct output for scanf as I want in french. An ideas?

marked as duplicate by terdon command-line Aug 18 '17 at 13:17

This question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question.

  • You need man 3 printf - see What is the difference between man and man (#)? – steeldriver Aug 18 '17 at 12:53
  • @steeldriver Should this be closed as a duplicate? Or do you think it's better to have an answer here? That printf in particular is a command as well as a C function surprises a lot of newcomers to Unix-like operating systems. – Eliah Kagan Aug 18 '17 at 13:00
  • @EliahKagan I dunno - it's not really a duplicate question - perhaps a nice answer that explains why this happens for printf but not for scanf and linking to the other answer as a more general reference for man sections? – steeldriver Aug 18 '17 at 13:15
  • @steeldriver Do you want to write that answer? If not, then I can probably write it when I get back. – Eliah Kagan Aug 18 '17 at 13:16
  • I think it is actually a dupe. @hackthatos, you are seeing the manual page of the printf command. The manual of the C function printf is in section 3 (as explained in the duplicate) so you need man 3 printf. – terdon Aug 18 '17 at 13:17

Browse other questions tagged or ask your own question.