Red Hat axp-list: Linux on Alpha (1995-2022)
 help / color / mirror / Atom feed
* POSIX, alpha, strtok() and char *'s...
@ 1998-03-27 17:33 s.c. trusty
  1998-03-27 18:42 ` Uncle George
  1998-03-27 19:47 ` Michal Jaegermann
  0 siblings, 2 replies; 3+ messages in thread
From: s.c. trusty @ 1998-03-27 17:33 UTC (permalink / raw)
  To: axp-list

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



^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~1998-03-27 19:47 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
1998-03-27 17:33 POSIX, alpha, strtok() and char *'s s.c. trusty
1998-03-27 18:42 ` Uncle George
1998-03-27 19:47 ` Michal Jaegermann

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox