1ISALNUM(3P)                POSIX Programmer's Manual               ISALNUM(3P)
2
3
4

PROLOG

6       This  manual  page is part of the POSIX Programmer's Manual.  The Linux
7       implementation of this interface may differ (consult the  corresponding
8       Linux  manual page for details of Linux behavior), or the interface may
9       not be implemented on Linux.
10

NAME

12       isalnum - test for an alphanumeric character
13

SYNOPSIS

15       #include <ctype.h>
16
17       int isalnum(int c);
18
19

DESCRIPTION

21       The isalnum() function shall test whether c is  a  character  of  class
22       alpha  or  digit  in the program's current locale; see the Base Defini‐
23       tions volume of IEEE Std 1003.1-2001, Chapter 7, Locale.
24
25       The c argument is an int, the value  of  which  the  application  shall
26       ensure  is  representable  as an unsigned char or equal to the value of
27       the macro EOF. If the argument has any other  value,  the  behavior  is
28       undefined.
29

RETURN VALUE

31       The  isalnum()  function  shall return non-zero if c is an alphanumeric
32       character; otherwise, it shall return 0.
33

ERRORS

35       No errors are defined.
36
37       The following sections are informative.
38

EXAMPLES

40       None.
41

APPLICATION USAGE

43       To ensure applications  portability,  especially  across  natural  lan‐
44       guages,  only  this  function  and those listed in the SEE ALSO section
45       should be used for character classification.
46

RATIONALE

48       None.
49

FUTURE DIRECTIONS

51       None.
52

SEE ALSO

54       isalpha(),  iscntrl(),  isdigit(),  isgraph(),  islower(),   isprint(),
55       ispunct(), isspace(), isupper(), isxdigit(), setlocale(), the Base Def‐
56       initions volume of IEEE Std 1003.1-2001, Chapter 7, Locale,  <ctype.h>,
57       <stdio.h>
58
60       Portions  of  this text are reprinted and reproduced in electronic form
61       from IEEE Std 1003.1, 2003 Edition, Standard for Information Technology
62       --  Portable  Operating  System  Interface (POSIX), The Open Group Base
63       Specifications Issue 6, Copyright (C) 2001-2003  by  the  Institute  of
64       Electrical  and  Electronics  Engineers, Inc and The Open Group. In the
65       event of any discrepancy between this version and the original IEEE and
66       The  Open Group Standard, the original IEEE and The Open Group Standard
67       is the referee document. The original Standard can be  obtained  online
68       at http://www.opengroup.org/unix/online.html .
69
70
71
72IEEE/The Open Group                  2003                          ISALNUM(3P)
Impressum