Red Hat axp-list: Linux on Alpha (1995-2022)
 help / color / mirror / Atom feed
From: "s.c. trusty" <alpharht@omega.croesus.net>
To: axp-list@redhat.com
Subject: POSIX, alpha, strtok() and char *'s...
Date: Fri, 27 Mar 1998 10:33:33 -0700 (MST)	[thread overview]
Message-ID: <Pine.LNX.3.96.980327103219.5105A-100000@omega.croesus.net> (raw)

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



             reply	other threads:[~1998-03-27 17:23 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1998-03-27 17:33 s.c. trusty [this message]
1998-03-27 18:42 ` POSIX, alpha, strtok() and char *'s Uncle George
1998-03-27 19:47 ` Michal Jaegermann
read-only archive

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