Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <stdio.h>
- #include <stdlib.h>
- int main()
- {
- char dicks[] = "hello, world\0";
- char* heh = NULL;
- int s = 0, i = 0;
- printf("%s\n", dicks);
- while (1)
- {
- unsigned char next = fgetc(stdin);
- s += 1;
- if (heh == NULL) { heh = malloc(s * sizeof(char)); }
- else { heh = realloc(heh, s * sizeof(char)); }
- heh[s-1] = next;
- if (next == 10)
- {
- heh[s-1] = '\0';
- break;
- }
- }
- printf("\"%s\"? wow you're a cunt", heh);
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement