File:  [DVB] / dietlibc / lib / isalnum.c
Revision 1.6: download - view: text, annotated - select for diffs
Tue Apr 4 03:10:40 2006 UTC (18 years, 2 months ago) by leitner
Branches: MAIN
CVS tags: HEAD
  HP-PA fixes (Micah Anderson, Hubert Poetzl)
  some locale touchups

#include <ctype.h>

int isalnum(int ch) {
  return (unsigned int)((ch | 0x20) - 'a') < 26u  ||
	 (unsigned int)( ch         - '0') < 10u;
}

LinuxTV legacy CVS <linuxtv.org/cvs>