Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.c > #15319

Re: strtok

Newsgroups comp.lang.c
From John Tsiombikas <nuclear@member.fsf.org>
Subject Re: strtok
References <4f00c25d$0$11612$bbae4d71@news.suddenlink.net> <58e461d9-8f55-43c2-b9ac-e90c81bd0733@d9g2000yqg.googlegroups.com> <4f00cf7f$0$15367$bbae4d71@news.suddenlink.net>
Message-ID <slrnjg3a01.373.nuclear@goat.mutantstargoat.com> (permalink)
Date 2012-01-02 12:50 +0000
Organization SunSITE.dk - Supporting Open source

Show all headers | View raw


On 2012-01-01, Bill Cunningham <nospam@nspam.invalid> wrote:
> Nick Keighley wrote:
>
>> neither,what does the man page say? Some people don't like what
>> strtok() does. It modifies the string you pass to it and doesn't
>> handle empty fields in the way you might like.
>>
>>> What should one use instead?
>>
>> good question. There's no portable answer. So write your own I
>> suppose. I've used strtok() its ok it does what it says on the can
>
>     Under bugs I have :
> "Never use these functions. If you do note

Retard manpage author. Nevermind that, use it if it does what you need,
just be aware of its limitations as others pointed out.

-- 
John Tsiombikas
http://nuclear.mutantstargoat.com/

Back to comp.lang.c | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread


Thread

strtok "Bill Cunningham" <nospam@nspam.invalid> - 2012-01-01 15:30 -0500
  Re: strtok Nick Keighley <nick_keighley_nospam@hotmail.com> - 2012-01-01 12:41 -0800
    Re: strtok "Bill Cunningham" <nospam@nspam.invalid> - 2012-01-01 16:26 -0500
      Re: strtok John Tsiombikas <nuclear@member.fsf.org> - 2012-01-02 12:50 +0000
  Re: strtok Johann Klammer <klammerr@NOSPAM.aon.at> - 2012-01-01 21:53 +0100
  Re: strtok gordonb.o4t45@burditt.org (Gordon Burditt) - 2012-01-01 15:04 -0600
  Re: strtok "osmium" <r124c4u102@comcast.net> - 2012-01-01 15:10 -0600
    Re: strtok jacob navia <jacob@spamsink.net> - 2012-01-01 23:25 +0100
  Re: strtok Ben Bacarisse <ben.usenet@bsb.me.uk> - 2012-01-01 21:37 +0000
    Re: strtok "Bill Cunningham" <nospam@nspam.invalid> - 2012-01-01 16:58 -0500
  Re: strtok blp@cs.stanford.edu (Ben Pfaff) - 2012-01-02 10:04 -0800
    Re: strtok David Thompson <dave.thompson2@verizon.net> - 2012-01-19 02:48 -0500

csiph-web