Your Browser is not longer supported

Please use Google Chrome, Mozilla Firefox or Microsoft Edge to view the page correctly
Loading...

{{viewport.spaceProperty.prod}}

isalpha - Buchstabe?

&pagelevel(4)&pagelevel

Definition

#include <ctype.h>

int isalpha(int c);

isalpha überprüft, ob das Zeichen c ein Buchstabe (A-Z, a-z) ist.

Returnwert

!= 0

Buchstabe.


0

kein Buchstabe.

Hinweise

isalpha ist sowohl als Makro als auch als Funktion realisiert (siehe Abschnitt "Funktionen und Makros“).

Beispiel

#include <ctype.h>
#include <stdio.h>
int main(void)
{
  int c;
  while((c = getchar()) != EOF)
    printf("%s : %c\n", ((isalpha(c)) ? "Buchstabe" : "Sonstiges"), c);
  return 0;
} 

Siehe auch

isalnum, isascii, iscntrl, isdigit, isgraph, islower, ispunct, isprint, isspace, isupper, isxdigit, isebcdic, iswalpha