Retro video games delivered to your door every month!
Click above to get retro games delivered to your door ever month!
X-Hacker.org- Zortech C++ Language Reference - toascii http://www.X-Hacker.org [<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
   toascii

   Usage
   #include <ctype.h>
   int toascii(int c);

   Description
   toascii  converts  c to a character by taking any  integer  value  and
   discarding  all  but  the  low order seven bits  making  up  an  ascii
   character.  If  c is already a valid character, then  it  is  returned
   unchanged.

   Implemented  as  a  macro in ctype.h, toascii is also  included  as  a
   function  within the library. Undefining the macros, or not  including
   ctype.h, will cause the library functions to be used.

   Example
   #include <ctype.h>
   #include <stdio.h>
   main()
   {
        printf("Make ascii character [%c]\n",toascii(0x0e));
   }

   Return Value
   Returns the low 7 bits of c.


Online resources provided by: http://www.X-Hacker.org --- NG 2 HTML conversion by Dave Pearson