fork download
  1. #include <stdio.h>
  2.  
  3. int main(void) {
  4. size_t n;
  5. char *words[3] = {NULL};
  6. for (size_t i = 0; i < sizeof words / sizeof *words; i++)
  7. {
  8. getline(&words[i], &n, stdin);
  9. printf("%s\n",words[i]);
  10. }
  11. return 0;
  12. }
  13.  
Success #stdin #stdout 0s 2304KB
stdin
hello
how
are
you?
stdout
hello

how

are