Article View: att.lang.c++
Article #85strtok()
From: Henry Zektser
Date: Sun, 07 May 2000 00:00
Date: Sun, 07 May 2000 00:00
16 lines
1120 bytes
1120 bytes
Hey all, I'm using MSVC++ 6.0 Enterprise and strtok(). The following code
builds, and executes, but I get no output on cerr, is this a problem with
strtok? MS's sample code doesnt work either...
trying to do this:
char LineContents[]="blah blah blah";
char seps[]=" \n";
token = strtok(LineContents, seps);
cerr << "token (bl): " << token << endl;
while( token != NULL )
{
cerr << "token: " << token << endl;
token = strtok( NULL, seps );
}
H
Technical Details
Message-ID:
<8f547i$apj$1@bob.news.rcn.net>Path:
arc1-ca.pugleaf.net!unknown!not-for-mailShow Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 10d4ba,e2c93d4356ee1452,start X-Google-Attributes: gid10d4ba,public X-Google-Thread: 109fba,e2c93d4356ee1452,start X-Google-Attributes: gid109fba,public From: "Henry Zektser" <kdentdev@hotmail.com> Subject: strtok() Date: 2000/05/07 Message-ID: <8f547i$apj$1@bob.news.rcn.net> X-Deja-AN: 620474984 X-Trace: gRkKxhu1jxKR3l+hXB5802BSGLmrKI0LJhQy2xrmdHcP/lBe+jR5Ew== X-Priority: 3 X-MSMail-Priority: Normal NNTP-Posting-Date: 8 May 2000 01:11:14 GMT Newsgroups: att.lang.c++,comp.lang.c++ X-MimeOLE: Produced By Microsoft MimeOLE V5.00.2919.6700 X-Complaints-To: abuse@rcn.com