From owner-freebsd-questions@FreeBSD.ORG Mon Oct 17 00:51:52 2011 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id D84B9106564A for ; Mon, 17 Oct 2011 00:51:52 +0000 (UTC) (envelope-from bonomi@mail.r-bonomi.com) Received: from mail.r-bonomi.com (mx-out.r-bonomi.com [204.87.227.120]) by mx1.freebsd.org (Postfix) with ESMTP id 8FBDA8FC0C for ; Mon, 17 Oct 2011 00:51:52 +0000 (UTC) Received: (from bonomi@localhost) by mail.r-bonomi.com (8.14.4/rdb1) id p9H0pNeP065733 for freebsd-questions@freebsd.org; Sun, 16 Oct 2011 19:51:23 -0500 (CDT) Date: Sun, 16 Oct 2011 19:51:23 -0500 (CDT) From: Robert Bonomi Message-Id: <201110170051.p9H0pNeP065733@mail.r-bonomi.com> To: freebsd-questions@freebsd.org In-Reply-To: <20111016230654.GB1112@thought.org> Subject: Re: need to check for hex in C: how/ X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 17 Oct 2011 00:51:52 -0000 > Date: Sun, 16 Oct 2011 16:06:54 -0700 > From: Gary Kline > Subject: Re: need to check for hex in C: how/ > > this will bbe my 'sanity-checck' of sorts. the ck function will > have something like: > > if ((char)x == 'a') > { > } > And, you deserve what happens if you use that kind of flawed checking. :)