diff options
author | jaseg <code@jaseg.net> | 2015-07-14 22:22:58 +0200 |
---|---|---|
committer | jaseg <code@jaseg.net> | 2015-07-14 22:22:58 +0200 |
commit | b53d2e82b40ada1212d424c367c776744d5fd9da (patch) | |
tree | 1109f6b28b72ca89a57d9926ed83cb38dcd0334b | |
parent | bc4fddbb4a018c05f7dd51aca7ed0464681fa860 (diff) | |
download | lolcat-b53d2e82b40ada1212d424c367c776744d5fd9da.tar.gz lolcat-b53d2e82b40ada1212d424c367c776744d5fd9da.tar.bz2 lolcat-b53d2e82b40ada1212d424c367c776744d5fd9da.zip |
Made the censoring tool more censory
-rwxr-xr-x | censor | bin | 26088 -> 26088 bytes | |||
-rw-r--r-- | censor.c | 8 |
2 files changed, 4 insertions, 4 deletions
Binary files differ @@ -55,12 +55,12 @@ int main(int argc, char **argv){ int c; while((c = fgetwc(f)) > 0){ - if(strchr("acemnopqrsuvwxyz", c)) + if(strchr("acegmnopqrsuvwxyz", c)) printf("▄"); - else if(strchr("bdfhijkltABCDEFGHIJKLMNOPQRSTUVWXYZ", c)) - printf("█"); - else + else if(strchr(".,:; \t\r\n", c)) printf("%lc", c); + else + printf("█"); } fclose(f); |