getline.h 280 B

123456789101112
  1. #ifndef MYGETLINE_H
  2. #define MYGETLINE_H
  3. //#include "config.h"
  4. #if !HAVE_GETLINE
  5. #include <stdio.h>
  6. ssize_t getdelim (char **lineptr, size_t *n, int delimiter, FILE *fp);
  7. #define getline(lineptr, n, stream) getdelim (lineptr, n, '\n', stream)
  8. #endif
  9. #endif // MYGETLINE_H