| www.delorie.com/archives/browse.cgi | search |
| Message-ID: | <001501c2cd74$703be8b0$6401a8c0@rollingwx79pp1> |
| From: | "Adam Coleman" <simcole AT colemanworld DOT net> |
| To: | <djgpp AT delorie DOT com> |
| References: | <Yrh0a.17522$QQ4 DOT 165456 AT twister DOT tampabay DOT rr DOT com> <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 |
| 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" <dj AT delorie DOT com> Newsgroups: comp.os.msdos.djgpp To: <simcole AT colemanworld DOT net> Cc: <djgpp AT delorie DOT com> 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" >
| webmaster | delorie software privacy |
| Copyright © 2019 by DJ Delorie | Updated Jul 2019 |