掲示板システム
ホーム
アクセス解析
カテゴリ
ログアウト
fgets後のmap処理について (ID:57262)
名前
ホームページ(ブログ、Twitterなど)のURL (省略可)
本文
MSDN ライブラリーの strtok のサンプルです。 これを見て、使い方を勉強してください。 #include <string.h> #include <stdio.h> char string[] = "A string\tof ,,tokens\nand some more tokens"; char seps[] = " ,\t\n"; char *token; int main( void ) { printf( "Tokens:\n" ); /* Establish string and get the first token: */ token = strtok( string, seps ); while( token != NULL ) { /* While there are tokens in "string" */ printf( " %s\n", token ); /* Get next token: */ token = strtok( NULL, seps ); } } MSDNライブラリー http://www.microsoft.com/japan/msdn/library/
←解決時は質問者本人がここをチェックしてください。
更新する
戻る
掲示板システム
Copyright 2021 Takeshi Okamoto All Rights Reserved.