Article View: gnu.gcc.bug
Article #6002gcc 2.7.2 problem with strtok()
From: M.Wang
Date: Fri, 27 Dec 1996 00:00
Date: Fri, 27 Dec 1996 00:00
20 lines
800 bytes
800 bytes
what is wrong with the following program?
#include <stdio.h>
#include <string.h>
int
main()
{
strtok("a b c", " ");
return 0;
}
It generate the following error message:
(15:48)(/home/mwang/c)gcc 1.c
(15:48)(/home/mwang/c)./a.out
Memory fault(coredump)
Thanks
Technical Details
Message-ID:
<59vbmi$9i0@nntpb.cb.lucent.com>Path:
arc1-ca.pugleaf.net!unknown!not-for-mailShow Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 113d02,18b9f2c0ce00f3,start X-Google-Attributes: gid113d02,public From: xiaofei@lucent.com (M.Wang) Subject: gcc 2.7.2 problem with strtok() Date: 1996/12/27 Message-ID: <59vbmi$9i0@nntpb.cb.lucent.com> X-Deja-AN: 206126702 sender: bug-gcc-request@prep.ai.mit.edu organization: AT&T original-from: mwang@fuwutai.wh.lucent.com (M.Wang) x-gateway: relay7.UU.NET from bug-gcc to gnu.gcc.bug; Thu, 26 Dec 1996 21:19:22 EST newsgroups: gnu.gcc.bug