Skip to content

Instantly share code, notes, and snippets.

@marcin-gryszkalis
Created June 28, 2018 10:18
Show Gist options
  • Save marcin-gryszkalis/5d46befeb890fc2e02d4398de50fbf9e to your computer and use it in GitHub Desktop.
Save marcin-gryszkalis/5d46befeb890fc2e02d4398de50fbf9e to your computer and use it in GitHub Desktop.
#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