Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Path: utzoo!mnetor!yetti!geac!drew From: drew@geac.UUCP (Drew Sullivan) Newsgroups: comp.lang.c Subject: Re: Passing (char *) NULL to printf to match %s Message-ID: <1166@geac.UUCP> Date: Tue, 18-Aug-87 04:52:05 EDT Article-I.D.: geac.1166 Posted: Tue Aug 18 04:52:05 1987 Date-Received: Wed, 19-Aug-87 05:23:23 EDT References: <166@qetzal.UUCP> <157@hobbes.UUCP> <875@bsu-cs.UUCP> <1219@cognos.UUCP> <25173@sun.uucp> <298@apex.UUCP> Reply-To: drew@geac.UUCP (Drew Sullivan) Organization: Systems Software Lines: 19 If the person is writting mixed C and assembler, then this can happen very easily. I in my initial mis-understanding of what was going on wrote: _data segment word public 'DATA' _data ends assume ds:_data rather than _data segment word public 'DATA' _data ends dgroup group _data assume ds:dgroup The first caused my assembler data to be offset relative to these extra 8 bytes and hence had all of my offset incorrect. That coupled with being a TSR (Dos Pop-up) routine made it very hard to debug. (Oh for the want of a real OS)