"MAN" Manual?

This is a discussion on "MAN" Manual? within the C Programming forums, part of the General Programming Boards category; When I ask some people for help in C code they ask if I've checked the man entry for the ...

  1. #1
    Registered User TieFighter's Avatar
    Join Date
    Feb 2010
    Location
    La Crosse, WI
    Posts
    32

    "MAN" Manual?

    When I ask some people for help in C code they ask if I've checked the man entry for the function. It seems to be a Unix command line argument - and I've sucessfully been able to pull up entries for various other command line programs with things like

    Code:
    penguin@penguin-laptop:~$man LS
    penguin@penguin-laptop:~$man GCC
    The GCC man gives me 13688 lines of options that I can add after typing gcc, but nothing for individual functions in the libraries of C that I'm looking for.

    Does anyone know how to find manual entries for functions in C libraries?

  2. #2
    Registered User
    Join Date
    Mar 2009
    Posts
    399
    This should work if you have the man pages installed:
    Code:
    man function
    Code:
    man header
    For example:
    Code:
    man printf
    Code:
    man stdio

  3. #3
    Registered User TieFighter's Avatar
    Join Date
    Feb 2010
    Location
    La Crosse, WI
    Posts
    32
    Code:
    penguin@penguin-laptop:~$ man malloc
    No manual entry for malloc
    penguin@penguin-laptop:~$ man memcpy
    No manual entry for memcpy
    penguin@penguin-laptop:~$ man memmove
    No manual entry for memmove
    So, how would I go about installing the manual file for the GCC libraries?

  4. #4
    Registered User
    Join Date
    Mar 2009
    Posts
    399
    I'm guessing you're using Ubuntu, so install libc6-dev.

  5. #5
    Registered User TieFighter's Avatar
    Join Date
    Feb 2010
    Location
    La Crosse, WI
    Posts
    32
    Yes. I am using Ubuntu. Unfortunately libc6-dev was already installed and it still wasn't displaying manual pages for C functions. I poked around with a search engine quick after you mentioned I probably didn't have the man pages installed and found these manuals to install:

    Install manpages, manpages-dev, manpages-posix, manpages-posix-dev.

    sudo apt-get install manpages manpages-dev manpages-posix manpages-posix-dev
    That seemed to work. Thank you for pointing me in the right direction though - I thought that the manual would have been installed already since gcc was installed.

  6. #6
    and the hat of sweating
    Join Date
    Aug 2007
    Location
    Toronto, ON
    Posts
    3,545
    Or you can view it in the browser in a much more user friendly GUI by typing "man whatever" in google.
    "I am probably the laziest programmer on the planet, a fact with which anyone who has ever seen my code will agree." - esbo, 11/15/2008

    "the internet is a scary place to be thats why i dont use it much." - billet, 03/17/2010

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Required Reading Unix Manual - Help!
    By wise_ron in forum Tech Board
    Replies: 3
    Last Post: 09-05-2006, 06:47 AM
  2. small manual uploaded
    By rohit in forum Linux Programming
    Replies: 0
    Last Post: 03-21-2002, 03:55 AM
  3. manual chorus : quarter beat
    By doubleanti in forum A Brief History of Cprogramming.com
    Replies: 2
    Last Post: 03-03-2002, 11:12 PM
  4. c builder manual
    By h_kharkan in forum Windows Programming
    Replies: 0
    Last Post: 12-14-2001, 02:02 AM

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21