On this page
  1. isalpha
  2. Include
  3. Signature & Overview
  4. Notes & Pitfalls
  5. Example

isalpha

Prev: isdigit | Up: ctype.h | Next: isspace
Rel: ctype.h, Arrays & C Strings
Ref: cppreference — isalpha
Tags: #public #prog #c #stdlib #ctype #tier/core


Include

#include <ctype.h>

Signature & Overview

int isalpha(int ch);

Returns non-zero if ch is an alphabetic character (also isalnum).

Notes & Pitfalls

Example

#include <assert.h>
#include <ctype.h>

int main(void) {
    assert(isalpha((unsigned char)'Z') != 0);
    assert(isalpha((unsigned char)'9') == 0);
}

Linked from

Related notes