Path: utzoo!utgpu!water!watmath!clyde!rutgers!sunybcs!bingvaxu!leah!itsgw!steinmetz!davidsen From: davidsen@steinmetz.steinmetz.UUCP (William E. Davidsen Jr) Newsgroups: comp.lang.c Subject: Re: Null-terminated C strings Keywords: C strings instructions architecture Message-ID: <8644@steinmetz.steinmetz.UUCP> Date: 12 Jan 88 20:19:57 GMT References: <14116@think.UUCP> <2958@okstate.UUCP> <152@piring.cwi.nl> <2033@geac.UUCP> <2637@mmintl.UUCP> Reply-To: davidsen@kbsvax.steinmetz.UUCP (William E. Davidsen Jr) Organization: General Electric CRD, Schenectady, NY Lines: 17 In article <2637@mmintl.UUCP> franka@mmintl.UUCP (Frank Adams) writes: >[I have directed followups to comp.lang.c only] > >I believe it was a mistake in C to make string constants refer to null >terminated strings automatically. Better, I think, to make the constant >contain exactly what the programmer wrote. That way, other string- It is easy enough to do what (I think) you want by using a use defined type and writing your own procedures. -- bill davidsen (wedu@ge-crd.arpa) {uunet | philabs | seismo}!steinmetz!crdos1!davidsen "Stupidity, like virtue, is its own reward" -me