Been out of programming a while. . .but. . .

This is a discussion on Been out of programming a while. . .but. . . within the Linux Programming forums, part of the Platform Specific Boards category; Okay. . .as the title says, I've been out of programming for a while (a couple of years, at least). ...

  1. #1
    Registered User
    Join Date
    Jan 2003
    Posts
    2

    Question Been out of programming a while. . .but. . .

    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??

    Thanks.

  2. #2
    Registered User Cela's Avatar
    Join Date
    Jan 2003
    Posts
    362
    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.
    Code:
    #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;
    }
    *Cela*

  3. #3
    Registered User
    Join Date
    Jan 2003
    Posts
    2
    Thank you much, sir/ma'am.

    I'll check out the online documentation pages.

    And thanks for the snippet of code.

  4. #4
    Registered User quagsire's Avatar
    Join Date
    Jun 2002
    Posts
    60
    Try www.tldp.org. They have man pages and some other linux related docs for download.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. hi all!!!
    By doubleanti in forum A Brief History of Cprogramming.com
    Replies: 20
    Last Post: 12-05-2002, 09:52 AM

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