Path: utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!tut.cis.ohio-state.edu!ucbvax!decwrl!sun-barr!texsun!texbell!sugar!ficc!peter From: peter@ficc.uu.net (Peter da Silva) Newsgroups: comp.lang.c Subject: Re: strings Message-ID: <4185@ficc.uu.net> Date: 14 May 89 19:09:58 GMT References: <2846@tank.uchicago.edu> <5785@cbnews.ATT.COM> <10087@smoke.BRL.MIL> <1989May13.211218.24251@utzoo.uucp> Organization: Xenix Support Lines: 11 In article <1989May13.211218.24251@utzoo.uucp>, henry@utzoo.uucp (Henry Spencer) writes: > You can't, any more than you can improve the equivalent in some other > languages to get the length of a trailing substring without having to > go back to the beginning and then subtract. Not if the string is stored as a length-and-start-address. -- Peter da Silva, Xenix Support, Ferranti International Controls Corporation. Business: uunet.uu.net!ficc!peter, peter@ficc.uu.net, +1 713 274 5180. Personal: ...!texbell!sugar!peter, peter@sugar.hackercorp.com.