3 @@ -206,6 +206,28 @@ INVL_DATA:
9 +getline(char **line, size_t *len, FILE *fd)
14 + tmp = fgetln(fd, &tmplen);
18 + if (!*line || tmplen > *len) {
20 + *line = realloc(*line, *len);
23 + strncpy(*line, tmp, tmplen);
30 * this function sets the kwbimage header by-
31 * 1. Abstracting input command line arguments data