Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- root#0000:~# ./charcode
- ł
- Got char c: C5
- Got char c: 82
- Got char c: 0A
- ^C
- root#0000:~#
- root#0000:~# echo -e 'xC5x82'
- ł
- root#0000:~#
- #include <stdio.h>
- int main()
- {
- int c;
- while((c=getchar())!=EOF) {
- printf("Got char c: %02Xn", (unsigned char)c);
- }
- return 0;
- }
Add Comment
Please, Sign In to add comment