View Full Version : Been out of programming a while. . .but. . .

01-14-2003, 11:54 AM
Okay. . .as the title says, I've been out of programming for a while (a couple of years, at least). I know things have changed and all that, so I figured I'd ask. . .

Where can I find documentation on all the C/C++ libs in Linux?? Are they in the man pages, or somewhere on the net?

Another question: I know that my Borland compiler for DOS had a time lib included, but does Linux??

If so, yay, I'll check it in documentation. If not, how can I check time then??


01-14-2003, 12:09 PM
The man pages should have everything you need, there's a good online version at www.rt.com/man.

>> If not, how can I check time then??
With standard C you can use the stuff in time.h.

#include <stdio.h>
#include <time.h>

int main(void)
time_t now;

if (time(&now) == -1)
fprintf(stderr, "No time available\n");
return 1;

printf("%s", ctime(&now));

return 0;

01-14-2003, 12:46 PM
Thank you much, sir/ma'am.

I'll check out the online documentation pages.

And thanks for the snippet of code. :)

01-14-2003, 11:44 PM
Try www.tldp.org. They have man pages and some other linux related docs for download.