Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP
Posting-Version: version B 2.10 5/3/83; site umcp-cs.UUCP
Path: utzoo!watmath!clyde!floyd!harpo!seismo!rlgvax!cvl!umcp-cs!chris
From: chris@umcp-cs.UUCP
Newsgroups: net.lang.c
Subject: Re: sizeof "string"
Message-ID: <4964@umcp-cs.UUCP>
Date: Thu, 2-Feb-84 17:11:00 EST
Article-I.D.: umcp-cs.4964
Posted: Thu Feb  2 17:11:00 1984
Date-Received: Wed, 8-Feb-84 03:13:36 EST
References: <1623@rlgvax.UUCP> <451@mprvaxa.UUCP> <925@druxy.UUCP> <270@inuxh.UUCP>
Organization: Univ. of Maryland, Computer Science Dept.
Lines: 16

"Hello\0, world" is one string.  If I say

	write (1, "Hello\0, world", 13);

I expect 13 characters to be written, with NUL and all.

(One might actually have a reason to depend on this -- say you were
storing ``very small'' integers in a char array.  You could use:

	char permute[] = "\2\1\0\9\8\7\6\3\4\5";

to get a weird permutation table.)
-- 
In-Real-Life: Chris Torek, Univ of MD Comp Sci
UUCP:	{seismo,allegra,brl-bmd}!umcp-cs!chris
CSNet:	chris@umcp-cs		ARPA:	chris.umcp-cs@CSNet-Relay