Timestamp Macro?
Perry Smith
pedz@easesoftware.net
Wed Feb 8 13:42:00 GMT 2006
These are part of the standard. They produce strings. So you can do
something like:
char timestamp[] = "Compiled on " __DATE__ " at " __TIME__;
The C preprocessor will concatenate the strings.
I would also suggest hooking up to some version control system (sccs,
rcs, cvs, etc) and incorporate this time stamp into your version
control string.
On Feb 8, 2006, at 7:04 AM, Grigory Zagorodnev wrote:
> Salvaje wrote:
>> I'm wondering if there is a TIMESTAMP macro like the one used in
>> Visual
> Probably __DATE__ and __TIME__ may help you.
>
> - Grigory
>
More information about the Gcc-help
mailing list