Your Browser is not longer supported
Please use Google Chrome, Mozilla Firefox or Microsoft Edge to view the page correctly
Loading...
{{viewport.spaceProperty.prod}}
toebcdic - convert integer to legal value (BS2000)
&pagelevel(4)&pagelevel
Syntax | #include <ctype.h> int toebcdic(int i); |
Description | toebcdic() 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.
i is an integer variable whose least-significant byte is to be returned. |
Return val. | Least-significant byte of the variable i if successful. |
Notes | toebcdic() is implemented both as a macro and as a function.
toebcdic() does not convert values from other character sets (e.g. ASCII).
toebcdic() is a synonym for toascii() . If portability to ASCII computers is essential,
toascii() should be used instead of toebcdic() .
|
See also | isascii() , toascii() , ctype.h .
|