Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Path: utzoo!utgpu!water!watnot!watmath!clyde!rutgers!lll-lcc!styx!ames!ptsfa!ihnp4!chinet!steinmetz!jesup From: jesup@steinmetz.UUCP Newsgroups: comp.arch Subject: Re: String Processing Instruction Message-ID: <1366@steinmetz.steinmetz.UUCP> Date: Tue, 31-Mar-87 17:49:00 EST Article-I.D.: steinmet.1366 Posted: Tue Mar 31 17:49:00 1987 Date-Received: Sat, 4-Apr-87 06:18:29 EST References: <15292@amdcad.UUCP> <978@ames.UUCP> <909@spar.SPAR.SLB.COM> <236@winchester.mips.UUCP> <182@homxb.UUCP> <15829@sun.uucp> Reply-To: jesup@kbsvax.steinmetz.UUCP (Randell Jesup) Distribution: na Organization: General Electric CRD, Schenectady, NY Lines: 16 In article <15829@sun.uucp> guy@sun.UUCP (Guy Harris) writes: > >I'd be interested to know how much string processing is, in fact, >done by *ad hoc* code because it didn't quite match the string >routines available on the system? "strtok" and company weren't in >V7, so people would usually have done their own string-chopping. For the shell I wrote for the Amiga (and for other programs as well), I have often used a set of string routines I wrote that always returns a pointer to the END of the string, not the beginning. This way I rarely, if ever, have to call strcat. I usually know what the beginning of the string is (except for things like strcpy(malloc(SIZE),string)). Randell Jesup jesup@steinmetz.uucp jesup@ge-crd.arpa