Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Posting-Version: version B 2.10.1 6/24/83; site mprvaxa.UUCP Path: utzoo!linus!philabs!cmcl2!floyd!harpo!ihnp4!alberta!ubc-vision!mprvaxa!wolfe From: wolfe@mprvaxa.UUCP (Peter Wolfe) Newsgroups: net.lang.c Subject: Re: sizeof "string" Message-ID: <451@mprvaxa.UUCP> Date: Tue, 31-Jan-84 11:04:30 EST Article-I.D.: mprvaxa.451 Posted: Tue Jan 31 11:04:30 1984 Date-Received: Fri, 3-Feb-84 02:39:09 EST References: <1623@rlgvax.UUCP> Organization: Microtel Pacific Research, Burnaby BC Lines: 8 Of course you got the size of a pointer as a result of doing sizeof "string". "string" is in fact a "pointer" to a constant string. I believe that sizeof is the only portable way to dtermine how large data types (eg. char's) are in C. -- Peter Wolfe Microtel Pacific Research ..decvax!microsoft!ubc-vision!mprvaxa!wolfe