From mboxrd@z Thu Jan 1 00:00:00 1970 Received: (qmail 26514 invoked from network); 27 Mar 1998 18:39:38 -0000 Received: from mail11.voicenet.com (HELO voicenet.com) (207.103.0.37) by mail2.redhat.com with SMTP; 27 Mar 1998 18:39:38 -0000 Received: (qmail 13091 invoked from network); 27 Mar 1998 18:39:36 -0000 Received: from rotary932-pri.voicenet.com (HELO voicenet.com) (209.71.52.32) by mail11.voicenet.com with SMTP; 27 Mar 1998 18:39:36 -0000 Message-ID: <351BF2FE.D91474D2@voicenet.com> Date: Fri, 27 Mar 1998 13:42:07 -0500 From: Uncle George Organization: None Avail X-Mailer: Mozilla 4.04 [en] (WinNT; I) MIME-Version: 1.0 To: axp-list@redhat.com Subject: Re: POSIX, alpha, strtok() and char *'s... References: Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit i sorta expect it to be casted in one of the .h's. if its not defined, or u dont include the .h, then the def return is an int ( as so i believe, so i do ). u can use gcc -E to see all the includes/cast'ings in the output of the compile. gat s.c. trusty wrote: > greetings. > > my question regards POSIX saying that strtok returns a char *. > > on my axp, sizeof(char *) = 8 > > sizeof(strtok(configToken, \",\")) is 4 (!) > > hence, sizeof((char *)strtok(configToken, ",")) = cast to pointer from > integer of different > size > > what is the typical way to solve/explain this? i realize this is a > probably old and moldy, but haven't had any luck tracking down the > solution. > > thanks any and all in advance, > > stuart trusty, > sysadmin, > linux labs > tucson.az.us > > -- > To unsubscribe: send e-mail to axp-list-request@redhat.com with > 'unsubscribe' as the subject. Do not send it to axp-list@redhat.com