Hi Morbus,

You can just change that "void" at the beginning to "int" and 
recompile (the "cc -o test test.c" command).  Then you can run 
the program by doing ./test and compare the output to what 
you're supposed to get.

  -Ken


On Wednesday, August 14, 2002, at 10:15 AM, Morbus Iff wrote:

>>> 1. Download, compile, and run the application found here:
>>>   http:[EMAIL PROTECTED]/msg02089.html
>
> Not having any clue what I'm doing (I know no C), I copied and 
> pasted the
> code with vi, named the file "test.c", ran the command in the 
> email, and go
> the following:
>
>  [disobey:~/Desktop] morbus% cc -o test test.c
>  test.c: In function `main':
>  test.c:6: warning: return type of `main' is not `int'
>
> Repeating said lack of clueness, I don't know what to do next:
>
>  1 #include <sys/types.h>
>  2 #include <stdio.h>
>  3 #include <time.h>
>  4
>  5 void main()
>  6 {
>  7    int strsize = 255;
>  8    time_t timeAsNumber;
>  9    struct tm *temp;
> 10    char str[256];

Reply via email to