tech-userlevel archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
Re: using the interfaces in ctype.h
cheusov%tut.by@localhost (Aleksey Cheusov) writes:
>int toupper (int c)
>{
> assert(c == EOF || c >= 0 && c <= UCHAR_MAX);
> ...
>}
That's true but impracticable. Fortunately Linux doesn't care so
that people do not see a compiler warning and work around it.
But we still get the warning which is almost as good as a runtime
check.
--
--
Michael van Elst
Internet: mlelstv%serpens.de@localhost
"A potential Snark may lurk in every tree."
Home |
Main Index |
Thread Index |
Old Index