Your Browser is not longer supported

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

{{viewport.spaceProperty.prod}}

C library functions that support ASCII encoding

&pagelevel(5)&pagelevel

For every library function in the C runtime system that works with characters and/or strings or returns a character or string (e.g. printf), there is:

  • an implementation of the function for processing characters and/or strings in EBCDIC format

  • an implementation of the function for processing characters and/or strings in ASCII format

  • a macro define that maps the original function (EBCDIC format) to the associated ASCII function

The prototype of an ASCII function and the associated define are stored in the include file in which the corresponding original file is declared. This has the advantage that no additional include files are required to use ASCII-encoded characters and strings, with the possible exception of <ascii_ebcdic.h> (see "Explicitly switching between EBCDIC and ASCII encoding").

Names of the ASCII functions

The syntax of the names of the ASCII functions is as follows:

__originalfunction_ascii()

The name of the original function should be specified for originalfunction.

The ASCII variant of printf(), for example, is __printf_ascii().

C library functions for which there is an ASCII function

a64l()

access()

asctime()

asctime(_r)

assert()

atof()

atoi()

atol()

atoll()

basename()

bs2cmd()

bs2exit()

bs2fstat()

bs2system()

c16rtomb()

c32rtomb()

catgets()

catopen()

chdir()

chmod()

chown()

chroot()

confstr()

creat()

creat64()

crypt()

ctermid()

ctime()

ctime_r()

ctime64()

cuserid()

dbm_open()

dirname()

ecvt()

ecvt_r()

execl()

execle()

execlp()

execv()

execve()

execvp()

execvpe()

faccessat()

fattach()

fchmodat()

fcvt()

fcvt_r()

fdetach()

fdopen()

fgetc()

fgets()

fmtmsg()

fnmatch()

fopen()

fopen64()

fprintf()

fputc()

fputs()

fread()

freopen()

freopen64()

fscanf()

fstat()

fstat64()

fstatat()

fstatat64()

fstatvfs()

fstatvfs64()

ftok()

ftw()

ftw64()

futimesat()

fwrite()



gcvt()

getc()

getc_unlocked()

getchar()

getchar_unlocked()

getcwd()

getdate()

getenv()

getgrent()

getgrgid()

getgrgid_r()

getgrnam()

getgrnam_r()

gethostname()

getlogin()

getlogin_r()

getopt()

getpass()

getpgmname()

getpwent()

getpwnam()

getpwnam_r()

getpwuid()

getpwuid_r()

gets()

getsubopt()

gettsn()

getutxent()

getutxid()

getutxline()

getwd()

glob()

initgroups()

ioctl()

isalnum()

isalpha()





isascii()

isblank()

iscntrl()

isdigit()

isgraph()

islower()

isprint()

ispunct()

isspace()

isupper()

isxdigit()

l64a()

lchown()

link()

linkat()

localeconv()

lstat()

lstat64()

mbrtoc16()

mbrtoc32()

mkdir()

mkdirat()

mkfifo()

mkfifoat()

mknod()

mknodat()

mkstemp()

mktemp()

nftw()

nftw64()

nl_langinfo()

open()

open64()

openat()

openat64()

opendir()

openlog()

pathconf()

perror()

popen()

printf()

ptsname()

putc()

putc_unlocked()

putchar()

putchar_unlocked()

putenv()

puts()

pututxline()

re_comp()

re_exec()

readdir()

readdir_r()

readdir64()

readdir64_r()

readlink()

readlinkat()

realpath()

regcmp()

regcomp()

regerror()

regexec()

remove()

rename()

renameat()

rmdir()

scanf()

setenv()

setlocale()

setlogmask()

snprintf()

sprintf()

sscanf()

stat()

stat64()

statvfs()

statvfs64()

strcasecmp()

strcoll()

strerror()

strfmon()

strftime()

strlower()

strncasecmp()

strptime()

strtod()

strtof()

strtoimax()

strtol()

strtold()

strtoll()

strtoul()

strtoull()

strtoumax()

strupper()

strxfrm()

symlink()

symlinkat()

syslog()

system()

tempnam()

tmpnam()

tolower()

toupper()

truncate()

truncate64()

ttyname()

ttyname_r()

uname()

ungetc()

unlink()

unlinkat()

unsetenv()

utime()

utimensat()

utimes()

vfprintf()

vfscanf()

vprintf()

vscanf()

vsnprintf()

vsprintf()

vsscanf()



For the following functions, the ASCII variants are only supported for CRTE versions from V11.1A30 and need POSIX-BC release from A47 to run:

fstatx()

fstat64x()

fstatatx()

fstatat64x()

ftwx()

ftw64x()

futimesat64()

lstatx()

lstat64x()

nftwx()

nftw64x()

statx()

stat64x()

utime64()

utimensat64()

utimes64()