tech-userlevel archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: using the interfaces in ctype.h (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

                                Michael van Elst
                                "A potential Snark may lurk in every tree."

Home | Main Index | Thread Index | Old Index