PDA

View Full Version : Function manual and reference



Xenarion
02-11-2003, 05:17 AM
Is there a function manual and reference under linux?

Encrypted
02-11-2003, 11:06 AM
hi

you could use the command 'man'
like

$man printf

you mean something like that?

encrypted

starX
02-12-2003, 04:50 AM
"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

Encrypted
02-12-2003, 12:25 PM
yeah ok,
so man 3 printf it is ;)

encrypted

starX
02-13-2003, 02:31 AM
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

orbitz
02-13-2003, 08:20 AM
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.

Jaguar
02-17-2003, 11:11 AM
Is there a function manual and reference under linux?I think he means which command to dump all functions under gcc--not only printf().

starX
02-19-2003, 06:46 AM
> >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