Thread: Function manual and reference

  1. #1
    Xenarion
    Guest

    Function manual and reference

    Is there a function manual and reference under linux?

  2. #2
    Registered User
    Join Date
    Nov 2002
    Posts
    24
    hi

    you could use the command 'man'
    like

    $man printf

    you mean something like that?

    encrypted

  3. #3
    Registered User
    Join Date
    Aug 2001
    Posts
    202
    "man printf" has always worked for me on linux machines. You should just be able to type the "man name-of-command" and get what you're looking for.

    starX
    www.axisoftime.com

  4. #4
    Registered User
    Join Date
    Nov 2002
    Posts
    24
    yeah ok,
    so man 3 printf it is

    encrypted

  5. #5
    Registered User
    Join Date
    Aug 2001
    Posts
    202
    Acually its funny you mentioned that because yes, I did try it before posting, and I've tried your way and get the same result. Well, actually first it tells me it can't find an entry for three and then proceeds to give me the system function. If I want to look at the c library functions for any command, I need to specify the section, followed by the letter c, and doing this requires a specific option passed to man.

    In this case "man -s 3c printf" gets me the printf family of functions. But as I said above, "man 3 printf" doesn't give me anything but the printf program and the error message.

    starX
    www.axisoftime.com

  6. #6
    Registered User
    Join Date
    Nov 2002
    Posts
    491
    Like any good *NIX util, its behavior is changable by a env. variable. It describes the order in which it should search the sections. man man to read up.

  7. #7
    still a n00b Jaguar's Avatar
    Join Date
    Jun 2002
    Posts
    187

    Re: Function manual and reference

    Is there a function manual and reference under linux?
    I think he means which command to dump all functions under gcc--not only printf().
    slackware 10.0; kernel 2.6.7
    gcc 3.4.0; glibc 2.3.2; vim editor
    migrating to freebsd 5.4

  8. #8
    Registered User
    Join Date
    Aug 2001
    Posts
    202

    Exclamation

    > >In this case "man -s 3c printf" gets me the printf family of functions.


    Good call. Yeah, you're absolutely right, that is on a Solaris box. You're command works on my Linux box. My bad.

    starX
    www.axisoftime.com

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. const qualifier used on a function argument
    By hzmonte in forum C Programming
    Replies: 27
    Last Post: 04-18-2006, 11:08 PM
  2. C++ Reference .chm format
    By IM! in forum C++ Programming
    Replies: 4
    Last Post: 12-15-2004, 08:32 AM
  3. Compare C reference books
    By kermit in forum A Brief History of Cprogramming.com
    Replies: 6
    Last Post: 10-15-2004, 10:13 AM
  4. Replies: 14
    Last Post: 04-27-2003, 06:37 PM