qemu-devel
[Top][All Lists]
Advanced

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

Re: [Qemu-devel] [6023] Use a hex value instead of possibly ambiguous 8


From: Erik de Castro Lopo
Subject: Re: [Qemu-devel] [6023] Use a hex value instead of possibly ambiguous 8 bit character
Date: Sun, 14 Dec 2008 22:45:59 +1100

Johannes Schindelin wrote:

> I vote against using isprint(c).  The code is simple as it is, otherwise 
> you'd have to look up what isprint() does, _and_ rely on isprint() being 
> present.
> 
> I know, there are many people on this list who are all too happy to rely 
> on new-fangled C99 stuff or lock themselves (and others) in with GCCisms. 
> Peronally, though, I find it utterly stupid to do that unless you really 
> have to.

isprint is part of C89 and any compiler less than 20 years old should
support it.

Erik
-- 
-----------------------------------------------------------------
Erik de Castro Lopo
-----------------------------------------------------------------
Complex problems have simple easy to understand wrong answers.




reply via email to

[Prev in Thread] Current Thread [Next in Thread]