summaryrefslogtreecommitdiff
path: root/hask-io/mini.c
diff options
context:
space:
mode:
Diffstat (limited to 'hask-io/mini.c')
-rw-r--r--hask-io/mini.c14
1 files changed, 0 insertions, 14 deletions
diff --git a/hask-io/mini.c b/hask-io/mini.c
deleted file mode 100644
index eb5ba46..0000000
--- a/hask-io/mini.c
+++ /dev/null
@@ -1,14 +0,0 @@
-#include <stdio.h>
-int main(){
- char buf[2048];
- int a=0;
- while(1){
- size_t sz=fread(&buf,1,2048,stdin);
- if(!sz)break;
- for(size_t i=0;i<sz;i++){
- a+=buf[i];
- a%=256;
- }
- }
- printf("%i\n",a);
-}