Thread: what is going wrong..

  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
    The Artful Lurker 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