summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorjaseg <code@jaseg.net>2015-07-14 22:22:58 +0200
committerjaseg <code@jaseg.net>2015-07-14 22:22:58 +0200
commitb53d2e82b40ada1212d424c367c776744d5fd9da (patch)
tree1109f6b28b72ca89a57d9926ed83cb38dcd0334b
parentbc4fddbb4a018c05f7dd51aca7ed0464681fa860 (diff)
downloadlolcat-b53d2e82b40ada1212d424c367c776744d5fd9da.tar.gz
lolcat-b53d2e82b40ada1212d424c367c776744d5fd9da.tar.bz2
lolcat-b53d2e82b40ada1212d424c367c776744d5fd9da.zip
Made the censoring tool more censory
-rwxr-xr-xcensorbin26088 -> 26088 bytes
-rw-r--r--censor.c8
2 files changed, 4 insertions, 4 deletions
diff --git a/censor b/censor
index cecacce..7b9606e 100755
--- a/censor
+++ b/censor
Binary files differ
diff --git a/censor.c b/censor.c
index 659d19c..80eabc8 100644
--- a/censor.c
+++ b/censor.c
@@ -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);