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 /censor.c | |
parent | bc4fddbb4a018c05f7dd51aca7ed0464681fa860 (diff) | |
download | lolcat-b53d2e82b40ada1212d424c367c776744d5fd9da.tar.gz lolcat-b53d2e82b40ada1212d424c367c776744d5fd9da.tar.bz2 lolcat-b53d2e82b40ada1212d424c367c776744d5fd9da.zip |
Made the censoring tool more censory
Diffstat (limited to 'censor.c')
-rw-r--r-- | censor.c | 8 |
1 files changed, 4 insertions, 4 deletions
@@ -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); |