Your Browser is not longer supported

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

{{viewport.spaceProperty.prod}}

isebcdic - Test for EBCDIC character

&pagelevel(4)&pagelevel

Definition

#include <ctype.h>

int isebcdic(int c);

isebcdic checks whether the value of the character c represents an EBCDIC character
(values 0 - 255).

Return val.

!= 0

0

the value of c represents an EBCDIC character (values 0 - 255),

c doesn’t represent an EBCDIC character (values != 0 - 255).

Notes

isebcdic is implemented both as a macro and as a function (see section “Functions and macros”).

isebcdic is a synonym for isascii. If portability to ASCII computers is required, isascii
should be used instead of isebcdic.

Example

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

See also

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