I am having trouble displaying items such as the and Size of a file when I access the stat() function.
http.c:234: warning: format %d expects type int, but argument 2 has type __off_t
The same goes from when I try obtain the date using the struct tm and try to assign it to a buffer to be written to a client socket using:
I get:Code:time_t tm; tm = time(NULL); ptr = localtime(&tm); sprintf(buf, "%s", ptr);
http.c:233: warning: format %s expects type char *, but argument 2 has type __time_t
How would I set the arguments up or cast these items so I no longer have these issues. Thanks