blob: 4926850a76c60d13f2cfe39377c492b424e19894 (
plain)
1
2
3
4
5
6
7
8
9
|
#define _GNU_SOURCE
#include <stdio.h>
#include "dietwarning.h"
#undef getline
ssize_t getline(char **lineptr, size_t *n, FILE *stream) {
return getdelim(lineptr,n,'\n',stream);
}
link_warning("getline","warning: you used getline without include stdio.h w/_GNU_SOURCE")
|