[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: `low slots'



Hans Aberg writes
>> there is nothing in the C standard demanding strings to be null terminated...

That is incorrect.  Section 2.2.1 of ANSI X3.159-1989 on p 11 says:

	A byte with all bits set to 0, called the {\em null character},
	shall exist in the basic execution character set; it is used
	to terminate a character string literal.

Significant portions of the C library, and virtually every non-trivial
C program in exist, depend on this property.

----------------------------------------------------------------------------
- Nelson H. F. Beebe                  Tel: +1 801 581 5254                 -
- Center for Scientific Computing     FAX: +1 801 581 4148                 -
- University of Utah                  Internet e-mail: beebe@math.utah.edu -
- Department of Mathematics, 105 JWB                   beebe@acm.org       -
- 155 S 1400 E RM 233                                  beebe@ieee.org      -
- Salt Lake City, UT 84112-0090, USA  URL: http://www.math.utah.edu/~beebe - 
----------------------------------------------------------------------------