Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Path: utzoo!mnetor!uunet!husc6!rutgers!columbia!cunixc!nwc From: nwc@cunixc.columbia.edu (Nick Christopher) Newsgroups: comp.sys.ibm.pc Subject: Turbo C memset problem Message-ID: <238@cunixc.columbia.edu> Date: Thu, 12-Nov-87 16:48:43 EST Article-I.D.: cunixc.238 Posted: Thu Nov 12 16:48:43 1987 Date-Received: Sat, 14-Nov-87 20:26:15 EST Reply-To: nwc@cunixc.columbia.edu (Nick Christopher) Organization: Columbia University Lines: 18 I had code that was very happy in the small model in which I blanked and character array using memset as follows: char string[80] memset(string,NULL,80); however when I moved to large model this no longer worked, it began to have the exact same 3 garbage characters at the begining of string. Is this the fault of my format or the memset's fault. /nwc -- "I am the Lorvax. I speak for the machines." ______________________________________________________________________________ nwc%cunixc@columbia, columbia!cunixc!nwc BITNET: nwcus@cuvma USENET: topaz!columbia!cunixc!nwc