summaryrefslogtreecommitdiff
path: root/censor.c
diff options
context:
space:
mode:
Diffstat (limited to 'censor.c')
-rw-r--r--censor.c8
1 files changed, 4 insertions, 4 deletions
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);