Look at the __DATE__ and __TIME__ predefined macros. Since they are
already string constants, you can use the compiler to concatenate them
with the string you want to display, such as:
char *version =
"Compiled on " __DATE__ " at " __TIME__;
Would love to use these Macros, but whenever I try to use __DATA__ for
example, the compiler complains that :
error: `__DATA__' undeclared (first use in this function)
Are these macros been introduced so recently in gcc that my sliiighlty
old 3.4.3 version doesn't support them ?