Created
June 28, 2018 10:18
-
-
Save marcin-gryszkalis/5d46befeb890fc2e02d4398de50fbf9e to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include<stdio.h> | |
int i; | |
char c; | |
FILE *f; | |
int main() { | |
f = fopen("b.txt","rb"); | |
while ((i = fread(&c,1,1,f)) > 0) | |
{ | |
// printf("%d\n", i); | |
char b; | |
/* | |
b = c >> 7; | |
b = ~b; | |
b = b << 7; | |
c = c & 0b01111111 | b; | |
*/ | |
c = ~c; | |
printf( "%c", c); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment