Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Path: utzoo!mnetor!uunet!seismo!mcvax!mhres!jv From: jv@mhres.mh.nl (Johan Vromans) Newsgroups: comp.lang.c Subject: Re: Does ANSI C have lengthof() ? Message-ID: <1273@mhres.mh.nl> Date: Fri, 4-Sep-87 17:20:18 EDT Article-I.D.: mhres.1273 Posted: Fri Sep 4 17:20:18 1987 Date-Received: Sun, 6-Sep-87 02:10:23 EDT References: <9154@brl-adm.ARPA> <1265@mhres.mh.nl> <6404@brl-smoke.ARPA> Organization: Multihouse N.V., The Netherlands Lines: 14 In article <6404@brl-smoke.ARPA> gwyn@brl.arpa (Doug Gwyn (VLD/VMB) ) writes: >People should STOP trying to do integer arithmetic with what are >nominally pointer values -- it is most unlikely to be portable, >and practically all portable uses do not require such kludgery! I agree -- but there are cases where this kind of arithmetic is unavoidable, e.g. the relocation of a disk-image of a program to a memory image. But maybe you are right - including provisions in the compiler or the pre-processor to make it easy to write non-portable programs should be avoided. -- Johan Vromans | jv@mh.nl via European backbone Multihouse N.V., Gouda, the Netherlands | uucp: ..{?????!}mcvax!mh.nl!jv "It is better to light a candle than to curse the darkness"