User Tools

Site Tools


Programming Reference/Librarys

Question & Answer

Q&A is closed


Table of Contents


    int toascii (int c);

a macro thats convert c into ascii chars

C Sourcecode Example

#include <stdio.h> /* including standard library */
//#include <windows.h> /* uncomment this for Windows */
#include <ctype.h> 
 void main(void) 
   int i; 
   for (i=0x2a; i<=0x42; i++) { 
     printf("%#04x is %c\n", i, toascii(i));


  user@host:~$ ./toascii 
  0x2a is *
  0x2b is +
  0x2c is ,
  0x2d is -
  0x2e is .
  0x2f is /
  0x30 is 0
  0x31 is 1
  0x32 is 2
  0x33 is 3
  and so on, and so on

on the occasion of the current invasion of Russia in Ukraine

Russian Stop this War
c/ctype.h/toascii.txt · Last modified: 2024/02/16 01:05 (external edit)

Impressum Datenschutz