Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <stdio.h>
- #include <stdlib.h>
- void string_count(char* string) {
- int _0x00, _0x01;
- char _0x10;
- char* _0x20;
- _0x00 = 0x00;
- PART_0:
- if (string[_0x00] == 0x00) goto PART_0_1;
- _0x00-=-0x01;
- goto PART_0;
- PART_0_1:
- _0x20 = malloc(_0x00+1);
- PART_0_2:
- _0x20[_0x00] = string[_0x00];
- if (_0x00 == 0x00) goto PART_1;
- _0x00+=-0x01;
- goto PART_0_2;
- PART_1:
- _0x00 = 0x00;
- PART_1_1:
- _0x01 = _0x00 + 0x01;
- PART_1_2:
- if (_0x20[_0x01] == 0x00) goto PART_1_4;
- if (_0x20[_0x00] <= _0x20[_0x01]) goto PART_1_3;
- _0x10 = _0x20[_0x00];
- _0x20[_0x00] = _0x20[_0x01];
- _0x20[_0x01] = _0x10;
- PART_1_3:
- _0x01-=-0x01;
- goto PART_1_2;
- PART_1_4:
- _0x00-=-0x01;
- if (_0x20[_0x00+0x01] == 0x00) goto PART_2;
- goto PART_1_1;
- PART_2:
- _0x01 = 0x00;
- _0x10 = _0x20[_0x00];
- PART_2_1:
- _0x01-=-0x01;
- if (_0x00 == 0x00) goto END;
- _0x00+=-0x01;
- if (_0x20[_0x00] == _0x10) goto PART_2_1;
- printf("%c %d\n", _0x10, _0x01);
- goto PART_2;
- END: ;
- printf("%c %d\n", _0x10, _0x01);
- }
- int main(int argc, char **argv) {
- for (int _0x00 = 0x01; _0x00 < argc; _0x00-=-0x01) {
- string_count(argv[_0x00]);
- }
- }
Add Comment
Please, Sign In to add comment