strstrプロジェクト

「strstrプロジェクト」の編集履歴(バックアップ)一覧はこちら

strstrプロジェクト」(2010/07/08 (木) 15:20:22) の最新版変更点

追加された行は緑色になります。

削除された行は赤色になります。

***strstr.c #highlight(c){{ #include <stdio.h> #include <string.h> int main(void){ char buf[256]; char *find_str_ptr; find_str_ptr = NULL; printf("Input search string: "); scanf("%s", buf); if ((find_str_ptr = strstr("ABCDEFGHIJKLMNOPQRSTUVWXYZ", buf)) == NULL){ printf("%s is not found.\n", buf); } else{ printf("%s is found: %s\n", buf, find_str_ptr); } return 0; } }}

表示オプション

横に並べて表示:
変化行の前後のみ表示: