Non-printable characters
-
Hello, i'm doing a simple ansi c console application. i'm reading a file Now, i have to print its characters, and if i find a non-printable character i'd like to write a . or , or whatever. i've got this code that prints everything:
while (Cantidad>0) { c=getc(Arch); if (c!=EOF) printf("%c",c); else { printf("eof.\\n"); return 1; } Cantidad--; }
how do i check if c is a non-printable character? thanks!
-
Hello, i'm doing a simple ansi c console application. i'm reading a file Now, i have to print its characters, and if i find a non-printable character i'd like to write a . or , or whatever. i've got this code that prints everything:
while (Cantidad>0) { c=getc(Arch); if (c!=EOF) printf("%c",c); else { printf("eof.\\n"); return 1; } Cantidad--; }
how do i check if c is a non-printable character? thanks!
isprint()
/ravi My new year's resolution: 2048 x 1536 Home | Articles | Freeware | Music ravib@ravib.com -
isprint()
/ravi My new year's resolution: 2048 x 1536 Home | Articles | Freeware | Music ravib@ravib.com