mirror of
https://github.com/lcn2/calc.git
synced 2025-08-19 01:13:27 +03:00
55 lines
1.6 KiB
Plaintext
55 lines
1.6 KiB
Plaintext
NAME
|
|
isalnum - whether character is alpha-numeric
|
|
|
|
SYNOPSIS
|
|
isalnum(c)
|
|
|
|
TYPES
|
|
c string
|
|
|
|
return int
|
|
|
|
DESCRIPTION
|
|
Determine if c is alpha-numeric. This function will return 1 if c is
|
|
alpha-numeric, 0 otherwise.
|
|
|
|
EXAMPLE
|
|
; print isalnum("A"), isalnum("a"), isalnum("2"), isalnum("\t")
|
|
1 1 1 0
|
|
|
|
LIMITS
|
|
none
|
|
|
|
LINK LIBRARY
|
|
none
|
|
|
|
SEE ALSO
|
|
islower, isupper, isalpha, iscntrl, isdigit, isgraph, isprint,
|
|
ispunct, isspace, isxdigit
|
|
|
|
## Copyright (C) 2013 Christoph Zurnieden
|
|
##
|
|
## Calc is open software; you can redistribute it and/or modify it under
|
|
## the terms of the version 2.1 of the GNU Lesser General Public License
|
|
## as published by the Free Software Foundation.
|
|
##
|
|
## Calc is distributed in the hope that it will be useful, but WITHOUT
|
|
## ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
|
|
## or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General
|
|
## Public License for more details.
|
|
##
|
|
## A copy of version 2.1 of the GNU Lesser General Public License is
|
|
## distributed with calc under the filename COPYING-LGPL. You should have
|
|
## received a copy with calc; if not, write to Free Software Foundation, Inc.
|
|
## 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
|
|
##
|
|
## @(#) $Revision: 30.3 $
|
|
## @(#) $Id: isalnum,v 30.3 2013/09/01 20:00:20 chongo Exp $
|
|
## @(#) $Source: /usr/local/src/bin/calc/help/RCS/isalnum,v $
|
|
##
|
|
## Under source code control: 2013/09/01 18:10:53
|
|
## File existed as early as: 2013
|
|
##
|
|
## chongo <was here> /\oo/\ http://www.isthe.com/chongo/
|
|
## Share and enjoy! :-) http://www.isthe.com/chongo/tech/comp/calc/
|