Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 16 Oct 2011 14:26:31 -0700
From:      Gary Kline <kline@thought.org>
To:        FreeBSD Mailing List <freebsd-questions@FreeBSD.ORG>
Subject:   need to check for hex in C: how/
Message-ID:  <20111016212628.GA30284@thought.org>

next in thread | raw e-mail | index | archive | help

if n == 15 and x is the int. i can say 

if ((int)x == 15)  Or to check if x == 'A' i can cast x to (char)x.

what's the syntax to chec if x is , say, 32/



-- 
 Gary Kline  kline@thought.org  http://www.thought.org  Public Service Unix
           Journey Toward the Dawn, E-Book: http://www.thought.org
          The 8.51a release of Jottings: http://jottings.thought.org




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20111016212628.GA30284>