PDA

View Full Version : Manpages for C functions




sammich
Aug 30, 2007, 02:41 AM
I just started a CS course at uni called Software Construction (2nd year) and we use 'C' as our language.

In the labs at uni, we run solaris, and we can access the manpages for C functions straight from the cmd line, ie: 'man rand'. Is there a way to get these pages onto my system, or are they already there? It would be a great help.

Thanks,
Sam.



itickings
Aug 30, 2007, 03:13 AM
They should be right there in OS X already. Just fire up Applications/Utilities/Terminal.app and type 'man -S 3 rand' (or whatever library function you are after).

sammich
Aug 30, 2007, 03:19 AM
Cool, thanks for that.

Just one more thing...should man pages differ from OS to OS? It's just that the rand man page has a little more 'use' info at the bottom.

Nevermind, as long as they are the c functions.

Thanks

itickings
Aug 30, 2007, 03:42 AM
Well, the man pages may very well differ a bit from system to system, but you shouldn't have any problems with the implementation.

If you are after the specific ones from your University's Solaris, check http://bama.ua.edu/cgi-bin/man-cgi, or see if you can select the appropriate SunOS from http://www.freebsd.org/cgi/man.cgi.