Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
Collapse the table of content
Expand the table of content


Converts characters.

int __toascii(
   int c 


Character to convert.

Return Value

__toascii converts a copy of c if possible, and returns the result. There is no return value reserved to indicate an error.


The __toascii routine converts the given character to an ASCII character.


Routine Required header Compatibility
__toascii <ctype.h> Win 98, Win Me, Win NT, Win 2000, Win XP

For additional compatibility information, see Compatibility in the Introduction.


All versions of the C run-time libraries.

See Also

Data Conversion Routines | is Routines | to Functions Overview | Run-Time Routines and .NET Framework Equivalents

© 2015 Microsoft