Your Browser is not longer supported
Please use Google Chrome, Mozilla Firefox or Microsoft Edge to view the page correctly
Loading...
{{viewport.spaceProperty.prod}}
toascii - convert integer to legal value
&pagelevel(4)&pagelevel
Syntax | #include <ctype.h> int toascii(int i); |
Description | toascii() uses the bitwise AND operator (i & 0XFF) to set the first 3 bytes of an integer variable i to 0 and returns the value of the least significant byte.
toascii() is a synonym for toebcdic() . On EBCDIC computers, toascii() returns a legal value from the EBCDIC character set. If portability to ASCII computers is essential,
toascii() should be used.
i is an integer variable whose least-significant byte is to be returned. |
Return val. | Value of the least-significant byte of the variable i if successful.on EBCDIC computers). |
Notes | toascii() does not convert values from other character sets (e.g. ASCII on EBCDIC computers).
|
See also | isacii() , toebcdic() , ctype.h .
|