This one time, at band camp, Sven Luther said: > And indeed, like i said, it worked fine 100s of times, and then died. Try : > > int main (void) { > struct tm tm; > time_t t; > while (1) { > t = time(NULL); > localtime_r (&t, &tm); > } > exit(0); > }
[EMAIL PROTECTED]:~$ cat t.c #include <time.h> #include <stdlib.h> int main (void) { struct tm tm; time_t t; while (1) { t = time(NULL); localtime_r (&t, &tm); } exit(0); } [EMAIL PROTECTED]:~$ gcc -Wall t.c [EMAIL PROTECTED]:~$ time LC_ALL=fr_FR.utf8 ./a.out real 1m21.381s user 1m1.716s sys 0m18.985s No crash. This is x86, but ppc is the same. -- ----------------------------------------------------------------- | ,''`. Stephen Gran | | : :' : [EMAIL PROTECTED] | | `. `' Debian user, admin, and developer | | `- http://www.debian.org | -----------------------------------------------------------------
signature.asc
Description: Digital signature