1/*- 2 * See the file LICENSE for redistribution information. 3 * 4 * Copyright (c) 2005,2008 Oracle. All rights reserved. 5 * 6 * $Id: isalpha.c,v 1.5 2008/01/08 20:58:08 bostic Exp $ 7 */ 8 9#include "db_config.h" 10 11#include "db_int.h" 12 13/* 14 * isalpha -- 15 * 16 * PUBLIC: #ifndef HAVE_ISALPHA 17 * PUBLIC: int isalpha __P((int)); 18 * PUBLIC: #endif 19 */ 20int 21isalpha(c) 22 int c; 23{ 24 /* 25 * Depends on ASCII-like character ordering. 26 */ 27 return ((c >= 'a' && c <= 'z') || (c >= 'A' && c <= 'Z') ? 1 : 0); 28} 29