Mail Archives: djgpp/2002/12/05/08:30:08
Michelle Konzack <dos DOT mailinglists AT freenet DOT de> wrote:
[... please note this is all still in the DJGPP mailing list ---
posting here in German is accepted, but not recommended...]
> Hallo Hans Bernhard,
> Am 12:36 30/11/02 GMT hat Hans-Bernhard Broeker geschrieben:
>>> But the serialdate under Linux is to large... in Decimal.
>>
>>It might help if you could explain what you mean by "serialdate".
> Naja, das serielle Datum ist eben fortlaufend ab dem 1.1.1970
> in sekunden...
E.g. just a plain time_t. Fine.
> Bei Dos-Kompatiblen 'maildir' dachte ich eben an 5e86d29a.000
For this particular case, just printing out time_t's as unsigned 32bit
integers in hex, i.e.
sprintf(filename, "%08.8x.%03.3x", (unsigned int) time_t, serial)
should do it. time_t is 32 bits in DJGPP and most current Unix
systems, so the hex representation fits exactly into 8 hex digits.
--
Hans-Bernhard Broeker (broeker AT physik DOT rwth-aachen DOT de)
Even if all the snow were burnt, ashes would remain.
- Raw text -