Linux and UNIX Man Pages

Linux & Unix Commands - Search Man Pages

isalpha(3) [netbsd man page]

ISALPHA(3)						   BSD Library Functions Manual 						ISALPHA(3)

NAME
isalpha -- alphabetic character test LIBRARY
Standard C Library (libc, -lc) SYNOPSIS
#include <ctype.h> int isalpha(int c); DESCRIPTION
The isalpha() function tests for any character for which isupper(3) or islower(3) is true and for which none of iscntrl(3), isdigit(3), ispunct(3), or isspace(3) is true. In the ``C'' locale, isalpha() returns true only for the characters for which isupper(3) or islower(3) is true. RETURN VALUES
The isalpha() function returns zero if the character tests false and returns non-zero if the character tests true. SEE ALSO
ctype(3), isalnum(3), isascii(3), isblank(3), iscntrl(3), isdigit(3), isgraph(3), islower(3), isprint(3), ispunct(3), isspace(3), isupper(3), isxdigit(3), stdio(3), toascii(3), tolower(3), toupper(3), ascii(7) STANDARDS
The isalpha() function conforms to ANSI X3.159-1989 (``ANSI C89''). CAVEATS
The argument to isalpha() must be EOF or representable as an unsigned char; otherwise, the behavior is undefined. See the CAVEATS section of ctype(3) for more details. BSD
April 17, 2008 BSD

Check Out this Related Man Page

CTYPE(3)						   BSD Library Functions Manual 						  CTYPE(3)

NAME
digittoint, isalnum, isalpha, isascii, isblank, iscntrl, isdigit, isgraph, ishexnumber, isideogram, islower, isnumber, isphonogram, isprint, ispunct, isrune, isspace, isspecial, isupper, isxdigit, toascii, tolower, toupper -- character classification macros LIBRARY
Standard C Library (libc, -lc) SYNOPSIS
#include <ctype.h> int digittoint(int c); int isalnum(int c); int isalpha(int c); int isascii(int c); int iscntrl(int c); int isdigit(int c); int isgraph(int c); int ishexnumber(int c); int isideogram(int c); int islower(int c); int isnumber(int c); int isphonogram(int c); int isspecial(int c); int isprint(int c); int ispunct(int c); int isrune(int c); int isspace(int c); int isupper(int c); int isxdigit(int c); int toascii(int c); int tolower(int c); int toupper(int c); DESCRIPTION
The above functions perform character tests and conversions on the integer c. They are available as macros, defined in the include file <ctype.h>, or as true functions in the C library. See the specific manual pages for more information. Extended locale versions of these functions are documented in ctype_l(3). See xlocale(3) for more information. SEE ALSO
digittoint(3), isalnum(3), isalpha(3), isascii(3), isblank(3), iscntrl(3), isdigit(3), isgraph(3), isideogram(3), islower(3), isphonogram(3), isprint(3), ispunct(3), isrune(3), isspace(3), isspecial(3), isupper(3), isxdigit(3), toascii(3), tolower(3), toupper(3), wctype(3), ascii(7), ctype_l(3) STANDARDS
These functions, except for digittoint(), isascii(), ishexnumber(), isideogram(), isnumber(), isphonogram(), isrune(), isspecial() and toascii(), conform to ISO/IEC 9899:1990 (``ISO C90''). BSD
March 30, 2004 BSD
Man Page

9 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

Check if a variable is a number - perl

Logic of code if ( $var is a number ) { Do something } else { Do something else } My question is: How do I check if a variable is a number. All the reg ex that I came up with to match this is failing. Please help. (3 Replies)
Discussion started by: garric
3 Replies

2. UNIX for Dummies Questions & Answers

Grep and find combination

Hello All, I'm trying the following:find . -name "*" -exec grep -ln "IsAlpha" {} \; It gives me file names only (having string "IsAlpha"), I want to get line numbers also, something like this: test 1: Line 52 test 1: Line 95 etc Is it possible to obtain using grep & find only. (5 Replies)
Discussion started by: nervous
5 Replies

3. UNIX for Dummies Questions & Answers

floating point error in linux + C

Here's a program and its pretty simple .It requires file handling and some calculations but on running it I am not getting the required result.It seems that the code outside the file read's outer while loop is not executing e.g the print statement is not being printed.Plz Help! #include<stdio.h>... (1 Reply)
Discussion started by: headrush
1 Replies

4. Programming

tree creation for an expression

i have written a program for creating an infix tree for the given expression. the program is working fine if we give the expression completlely binded with operators and operands but when we ignore the brackets we need to consider the priority of the operators nad build the tree. i am not... (1 Reply)
Discussion started by: MrUser
1 Replies

5. Shell Programming and Scripting

Spanish accent symbol removed by sed

Hello All in a text file I have to replace some numeric code by a string. This is an exemple of the file: 000000001 LDR L ^^^^^nam^^2200169Ia^45e0 000000001 008 L 100604s9999^^^^xx^^^^^^^^^^^^000^0^und^d 000000001 022 L $$a0365-6675 000000001 090 L $$aBMA 1934-1937. 000000001 245... (1 Reply)
Discussion started by: ldiaz2106
1 Replies

6. Shell Programming and Scripting

[BASH] Allow name with spaces (regex)

Hey all, I have a very simple regular expression that I use when I want to allow only letters with spaces. (I know this regex has a lot of shortcomings, but I'm still trying to learn them) isAlpha='^*$'However, when I bring this over to BASH it doesn't allow me to enter spaces. I use the... (3 Replies)
Discussion started by: whyte_rhyno
3 Replies

7. Programming

[C] close server after user input

i must close server after a specific user input, such as FINE, if i put a test inside function "maiuscolatore" i receive an error on second recv of client. why? below there are code of client and server: CLIENT: #include <stdlib.h> #include <stdio.h> #include... (0 Replies)
Discussion started by: tafazzi87
0 Replies

8. Shell Programming and Scripting

Bash to verify and validate file header and data type

The below bash is a file validation check executed that will verify the correct header count of 10 and the correct data type in each field of the tab-delimited file. The key has the data type of each field in it. My real data has 58 headers in it but only the header and next row need to be... (6 Replies)
Discussion started by: cmccabe
6 Replies

9. UNIX for Beginners Questions & Answers

Where can I find the program that runs the -wc command?

Hey guys, I was wondering. When I enter a command in the terminal -wcl for a word count, where is that program located in the kernel? (7 Replies)
Discussion started by: Circuits
7 Replies