Path: utzoo!mnetor!uunet!husc6!cmcl2!brl-adm!umd5!mimsy!chris From: chris@mimsy.UUCP (Chris Torek) Newsgroups: comp.lang.c Subject: Re: embedded NULs in strings Message-ID: <9949@mimsy.UUCP> Date: 24 Dec 87 22:46:11 GMT References: <174@quick.COM> <14116@think.UUCP> <2447@hall.cray.com> <503@thorin.cs.unc.edu> Organization: U of Maryland, Dept. of Computer Science, Coll. Pk., MD 20742 Lines: 18 >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