[comp.lang.c] embedded NULs in strings

chris@mimsy.UUCP (Chris Torek) (12/25/87)

>In article <3087@phri.UUCP> roy@phri.UUCP (Roy Smith) writes:
>>... I can't think of any valid reason offhand you would *want*
>>to do such a thing.

In article <503@thorin.cs.unc.edu> leech@polk.cs.unc.edu (Jonathan
Leech) writes:
>    To let people patch site-specific data in code distributed
>binary-only ...

Also there is this:

	char *monthname(int month) {
		return (&"Jan\0Feb\0Mar\0Apr\0May\0"
			"Jun\0Jul\0Aug\0Sep\0Oct\0Nov\0Dec"[month * 4]);
	}
-- 
In-Real-Life: Chris Torek, Univ of MD Comp Sci Dept (+1 301 454 7690)
Domain:	chris@mimsy.umd.edu	Path:	uunet!mimsy!chris