3 @@ -206,6 +206,30 @@ INVL_DATA:
8 +#if !defined(__APPLE__) || __DARWIN_C_LEVEL < 200809L
10 +getline(char **line, size_t *len, FILE *fd)
15 + tmp = fgetln(fd, &tmplen);
19 + if (!*line || tmplen > *len) {
21 + *line = realloc(*line, *len);
24 + strncpy(*line, tmp, tmplen);
32 * this function sets the kwbimage header by-
33 * 1. Abstracting input command line arguments data