Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Path: utzoo!utgpu!utcsri!flaps From: flaps@utcsri.UUCP Newsgroups: comp.arch,comp.lang.c Subject: Re: String Handling -- Incompetence of run-time libraries Message-ID: <4584@utcsri.UUCP> Date: Wed, 15-Apr-87 00:34:39 EST Article-I.D.: utcsri.4584 Posted: Wed Apr 15 00:34:39 1987 Date-Received: Wed, 15-Apr-87 23:38:59 EST References: <15292@amdcad.UUCP> <978@ames.UUCP> <15694@sun.uucp> Reply-To: flaps@utcsri.UUCP (Alan J Rosenthal) Organization: University of Toronto Lines: 21 Keywords: instruction set architectures, strcpy Xref: utgpu comp.arch:868 comp.lang.c:1611 Summary: In article <531@gec-mi-at.co.uk> adam@gec-mi-at.co.uk (Adam Quantrill) writes: >The alignment problem only comes in if either of >the strings begins on an odd boundary, which is fairly unusual anyway. This is extremely usual! Suppose you have a string where the first character indicates what kind of string it is, I have this in a big program I'm working on now. I therefore often say "dosomething(&string[1])". In other words, the problem with these kinds of assumptions is that you can add odd numbers to char pointers to get final substrings. -- Alan J Rosenthal flaps@csri.toronto.edu, {seismo!utai or utzoo}!utcsri!flaps, flaps@toronto on csnet, flaps at utorgpu on bitnet. "Probably the best operating system in the world is the [operating system] made for the PDP-11 by Bell Laboratories." - Ted Nelson, October 1977