From: Vic Newsgroups: comp.os.msdos.djgpp Subject: Re: Why won't this work? Date: Sat, 28 Mar 1998 15:32:36 +0200 Organization: Communications Accessibles Montreal, Quebec Canada Lines: 15 Message-ID: <351CFBF4.511@cam.org> References: <351E8C26 DOT 2608F112 AT netrover DOT com> NNTP-Posting-Host: dialup-738.hip.cam.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp Precedence: bulk Nicolas Blais wrote: > > Hi, > Check the code below, can't figure out why this doesn't work, I mean, > should it exit when I enter exit? Also, when I type spaces into my > string, it creates as many ":" as I inputed spaces. Can anyone fix > this? > > getcommand(void) > { > char *p; > char *com; shouldn't you allocate some space for those? -- --> http://www.cam.org/~tudor <--