This is the mail archive of the
cygwin@sourceware.cygnus.com
mailing list for the Cygwin project.
Re: <time.h> bug???
- To: gnu-win32 at cygnus dot com
- Subject: Re: <time.h> bug???
- From: mh at mike dot franken dot de (Michael Hirmke)
- Date: 21 May 1998 00:33:00 +0200
- Organization: Kommunikationsnetz Franken e.V. (Nuernberg)
Hi Ho-Jin,
[...]
>wingui.c:67: warning: assignment makes pointer from integer without a
>cast
>wingui.c:69: warning: assignment makes pointer from integer without a
>cast
[...]
>áTotal = strtok(cTime, str);ááááááááá <-- #67 if (char*) is inserted, it
>
[...]
>but i succeed to compile it for a console program with djgpp &
>cygnus-win32... and my friend report me that VC++5.0 handles it
>correctly.
>what makes this difference??? or is it a compiler error?
It is a completely acceptable behaviour !
strtok ist defined as
char *strtok(char *s, const char *delim);
^^^^^^^
[...]
while you defined "s" as
static char cTime[50];
which isn't the same !
Bye.
Michael.
--
Michael Hirmke | Telefon +49 (911) 557999
Georg-Strobel-Strasse 81 | FAX +49 (911) 557664
90489 Nuernberg | E-Mail mailto:mh@mike.franken.de
| WWW http://minimike.franken.de/
-
For help on using this list (especially unsubscribing), send a message to
"gnu-win32-request@cygnus.com" with one line of text: "help".