検索
カテゴリ
以前の記事
2005年 10月 2005年 08月 2005年 07月 2005年 06月 2005年 05月 2005年 04月 2005年 03月 2005年 02月 2005年 01月 2004年 12月 2004年 11月 2004年 10月 2004年 09月 2004年 08月 2004年 07月 2004年 06月 2004年 05月 2004年 04月 2004年 03月 最新のトラックバック
フォロー中のブログ
その他のジャンル
ファン
記事ランキング
ブログジャンル
画像一覧
|
ああ,あかんわ.関数修整.
int stdinGetCapString(char *p, int cap){ 結構不満なコードの一例.fgets(p, cap, stdin); *(p+strlen(p)-1) = '\0'; fflush(stdin); return 0; } LISTINPUT_FIRSTNAME:
printf("名前 > "); stdinGetCapString(now->firstname, CAP_NAME); if(now->firstname[0]=='\0'){ printf("名前の空入力は許されません\n"); goto LISTINPUT_FIRSTNAME; }
by sigma_ga
| 2005-02-06 21:58
| 日記
|
ファン申請 |
||