T
thomas
Hi,
I'm using date as module version like this:
-----
#define MAJOR_VERSION 1
char strVersion[32];
sprintf(strVersion, "%d.%s", __DATE__);
----
And finally I got "1.Oct 19 2010" as version.
But I expected "1.2010.10.19", or "1.10.19.2010", something like that.
How to do it elegantly?
One way I can think of is to parse the __DATE__ string and compose the
version string to my own need,
though I expect there might be a way to set the date format so that
extra code is minimal.
Thanks.
tom
I'm using date as module version like this:
-----
#define MAJOR_VERSION 1
char strVersion[32];
sprintf(strVersion, "%d.%s", __DATE__);
----
And finally I got "1.Oct 19 2010" as version.
But I expected "1.2010.10.19", or "1.10.19.2010", something like that.
How to do it elegantly?
One way I can think of is to parse the __DATE__ string and compose the
version string to my own need,
though I expect there might be a way to set the date format so that
extra code is minimal.
Thanks.
tom