Hi everybody!
Sorry to trouble you again... but can anybody tell me if in the condition #include<sys/time.h> the header file "sys/time.h" is a standard C library file?
Thank you
Luís Dimas
Hi everybody!
Sorry to trouble you again... but can anybody tell me if in the condition #include<sys/time.h> the header file "sys/time.h" is a standard C library file?
Thank you
Luís Dimas
#include <time.h>
is standard
When all else fails, read the instructions.
If you're posting code, use code tags: [code] /* insert code here */ [/code]
So, can you tell me what does <sys/time.h> refers to... or what does "/" means in an header file...Originally posted by Hammer
#include <time.h>
is standard
Thanks
Luís Dimas
The slash means look in subdirectory called sys for file called time.h.
I think that's a Unix version of the header file, probably holding some OS specific functions. If you have it, open it and see what functions are defined in there.
When all else fails, read the instructions.
If you're posting code, use code tags: [code] /* insert code here */ [/code]
>Hammer wrote:
>The slash means look in subdirectory called sys for file called >time.h.
>
>I think that's a Unix version of the header file, probably holding >some OS specific functions. If you have it, open it and see what >functions are defined in there.
I don´t have acess to that subdirectoey... i'm trying to run "this" piece of code from a windows machine. I think you are right about the slash meaning in the header file... it must be a Unix version.
Thank you for your kind help
Luis