when a core dump occurs ?
Chris Torek
chris at mimsy.UUCP
Wed Jun 29 14:49:32 AEST 1988
In article <1285 at ddsw1.UUCP> koala at ddsw1.UUCP (Karl Meiser) writes:
>Usually its errors that cant be checked by the compiler, such as missing
>or incorrect arguments, examples:
>
>main()
>{
>long x;
>
>printf("%s"); /* Missing argument */
>printf("%d",x); /* Should be descriptor for long, %d is for ints */
>}
Hm. `Cannot be checked'?
% lint -h tt.c
tt.c:
tt.c(5): warning: possible format/argument count mismatch
tt.c(6): warning: printf: (int) format, (long) arg (arg 2)
tt.c(6): warning: x may be used before set
printf returns value which is always ignored
%
(Somehow this reminds me of arguments about `volatile' detection :-) )
--
In-Real-Life: Chris Torek, Univ of MD Comp Sci Dept (+1 301 454 7163)
Domain: chris at mimsy.umd.edu Path: uunet!mimsy!chris
More information about the Comp.lang.c
mailing list