Re: Timestamp Macro?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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



[Index of Archives]     [Linux C Programming]     [Linux Kernel]     [eCos]     [Fedora Development]     [Fedora Announce]     [Autoconf]     [The DWARVES Debugging Tools]     [Yosemite Campsites]     [Yosemite News]     [Linux GCC]

  Powered by Linux