Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Path: utzoo!mnetor!uunet!husc6!uwvax!oddjob!gargoyle!ihnp4!laidbak!daveb From: daveb@laidbak.UUCP (Dave Burton) Newsgroups: comp.lang.c,comp.unix.xenix Subject: Re: uPort 1.3 cc static char * Message-ID: <1253@laidbak.UUCP> Date: Wed, 18-Nov-87 00:51:43 EST Article-I.D.: laidbak.1253 Posted: Wed Nov 18 00:51:43 1987 Date-Received: Sat, 21-Nov-87 11:59:24 EST References: <471@petro.UUCP> Reply-To: daveb@laidbak.UUCP (Dave Burton) Organization: is pretty bad/My method of Lines: 29 Xref: mnetor comp.lang.c:5482 comp.unix.xenix:1177 In article <471@petro.UUCP> jrb@petro.UUCP (Jon Boede) writes: >I sent some code over to an AT running Microport XENIX 1.3 ... when using the >-Ml (large) model the following crashed and burned... > >main() >{ > char *a_pointer; > a_pointer = "some static data"; > puts(a_pointer); >} > >However, when I change a_pointer to "static char *a_pointer" it works. Why? I would also like to know the answer to this. (Take that, included text line counter!) -- --------------------"Well, it looked good when I wrote it"--------------------- Verbal: Dave Burton Net: ...!ihnp4!laidbak!daveb V-MAIL: (312) 505-9100 x325 USSnail: 1901 N. Naper Blvd. #include Naperville, IL 60540