[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[debian-devel:03244] Re: how to debag in libc



From: Kaz Sasayama <Kaz.Sasayama@xxxxxxxxxxxxxxx>
Subject: [debian-devel:03238] Re: how to debag in libc
Date: Sun, 12 Apr 1998 22:25:39 +0900

> そんな単純な問題じゃないかな。
> 
> >>>>> On Sun, 12 Apr 1998 21:36:16 +0900, Kaz Sasayama <Kaz.Sasayama@xxxxxxxxxxxxxxx> said:
> 
>     Kaz> 以下のようにしましょう。
> 
>     Kaz> char str[] = "14";
>     Kaz> s = strtok(str, " ,\t\n\r");

これでいいんじゃないでしょうか?
もしくは gcc -fwritable-strings  か。

まぁ strtok(3) には
 BUGS
	Never use this function.  This function modifies its first
	argument.  The identity of the delimiting character is
	lost.  This function cannot be used on constant strings.

とか書かれているので使わない方がいいのかも:)
-- 
鵜飼文敏