2000/04/28
■ C
なんじゃ、このソース。
$ !cc cc -Wall -ansi a.c a.c:2: warning: return-type defaults to `int' a.c: In function `mail': a.c:4: warning: implicit declaration of function `preintf' a.c:6: warning: implicit declaration of function `printf' a.c:8: warning: control reaches end of non-void function
preintfはprintfの間違いだとしたら、smallは未定義だし、 よもやここがscanfの間違いだったら論外だし。 これは英小文字を英大文字にしたいんだろうけど、範囲のチェックされてないし、 ふつーtoupperだろう。