Answers for "cleanup non printable characters from output"

0

Filter out any non-printable characters

int ch, N = 0;
while ((ch = getchar()) != EOF) {
    if (isspace(ch))
        a[N++] = ' ';
    else if (isprint(ch))
        a[N++] = ch;
}
Posted by: Guest on April-29-2021
0

Filter out any non-printable characters

int ch, N = 0;
while ((ch = getchar()) != EOF) {
    if (isspace(ch))
        a[N++] = ' ';
    else if (isprint(ch))
        a[N++] = ch;
}
Posted by: Guest on April-29-2021

Code answers related to "cleanup non printable characters from output"

Code answers related to "Java"

Java Answers by Framework

Browse Popular Code Answers by Language