Re: Frage zu 64bit-portability-issue curses.c:322
Marcus Meissner <[email protected]> Sun, 31 Jan 2010 09:57:14 +0100
| Newsgroups | gmane.linux.suse.programming |
|---|---|
| Organization | SUSE LINUX Products GmbH, GF: Markus Rex, HRB 16746 (AG Nuernberg) |
| Message-ID | <[email protected]> |
On Sat, Jan 30, 2010 at 10:31:54PM +0100, Sascha 'saigkill' Manns wrote:
> Hallo ihr lieben,
>
> wie manchem bekannt ist, bastel ich gerne mal am Compiler, um
> Erfahrungen zu sammeln.
> Jetzt bin ich mal bei netris. Hier kam obige Meldung,.
>
> Die Funktion ist:
> ExtFunc void RefreshScreen(void)
> {
> static char timeStr[2][32];
> time_t theTime;
>
> time(&theTime);
> strftime(timeStr[0], 30, "%I:%M %p", localtime(&theTime)); <--Das
> ist die Zeile um die es geht.
> /* Just in case the local curses library sucks */
> if (strcmp(timeStr[0], timeStr[1]))
> {
> move(statusYPos, statusXPos);
> addstr(timeStr[0]);
> strcpy(timeStr[1], timeStr[0]);
> }
> move(boardYPos[0] + 1, boardXPos[0] + 2 * boardWidth[0] + 1);
> refresh();
> }
> Hat jemand sowas mal gehabt? Bei Google fand ich bisher noch nichts, was
> mich wirklich weiterbrachte...
Was ist denn die genaue Fehler Meldung?
Ciao, Marcus