Message-ID: <001501c2cd74$703be8b0$6401a8c0@rollingwx79pp1> From: "Adam Coleman" To: References: <200302060004 DOT h16042h00842 AT envy DOT delorie DOT com> Subject: Re: Basic CS C question! Date: Wed, 5 Feb 2003 19:12:28 -0500 MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 6.00.2720.3000 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2600.0000 Reply-To: djgpp AT delorie DOT com Hrm.. How would I write the physical code for that? I'm not exactly sure if I need to substring the string or what? ----- Original Message ----- From: "DJ Delorie" Newsgroups: comp.os.msdos.djgpp To: Cc: Sent: Wednesday, February 05, 2003 7:04 PM Subject: Re: Basic CS C question! > > Given a token of ",", and the input string "abc,,def", strtok() would > return: > > "abc" > "def" > > It sounds like they want a function that returns: > > "abc" > "" > "def" >