what is going wrong..

This is a discussion on what is going wrong.. within the Linux Programming forums, part of the Platform Specific Boards category; i keep getting errorz... can anyone tell me why.. ? #include <stdio.h> #include <time.h> int main() { char *ctime(time_t clock); ...

  1. #1
    Registered User
    Join Date
    Dec 2001
    Posts
    227

    Talking what is going wrong..

    i keep getting errorz... can anyone tell me why.. ?


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



    int main()
    {
    char *ctime(time_t clock);

    time_t thetime;
    thetime = time(NULL);

    printf("\n",ctime(&thetime));

  2. #2
    B26354 Deckard's Avatar
    Join Date
    Jan 2002
    Posts
    633
    Code:
    #include <stdio.h>
    #include <time.h>
    
    int main()
    {
      /* char *ctime(time_t clock); */
    
      time_t thetime;
      thetime = time(NULL);
    
      printf("%s\n",ctime(&thetime));
    
      return 0;
    }
    Jason Deckard

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Replies: 9
    Last Post: 07-15-2004, 03:30 PM
  2. Debugging-Looking in the wrong places
    By JaWiB in forum A Brief History of Cprogramming.com
    Replies: 1
    Last Post: 11-03-2003, 09:50 PM
  3. Confused: What is wrong with void??
    By Machewy in forum C++ Programming
    Replies: 19
    Last Post: 04-15-2003, 12:40 PM
  4. God
    By datainjector in forum A Brief History of Cprogramming.com
    Replies: 746
    Last Post: 12-22-2002, 11:01 AM
  5. Whats wrong?
    By Unregistered in forum C Programming
    Replies: 6
    Last Post: 07-14-2002, 01:04 PM

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