Created
October 5, 2016 15:36
-
-
Save AndyNovo/9332bfdfcaa5e6fce4eb0cc59013edb6 to your computer and use it in GitHub Desktop.
This file contains hidden or 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 <string.h> | |
#include <stdio.h> | |
#include <stdlib.h> | |
int main(int argc, char **argv) { | |
size_t bytes = 256; | |
char* p2chunk = (char *)malloc(bytes); | |
getline(&p2chunk, &bytes, stdin); | |
printf("%s\n", p2chunk); | |
free(p2chunk); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment