int status = -1;
char *buffer = NULL;
+ VERBOSE (DEBUG, fprintf (stdout, "exec command: %s\n", cmd));
FILE *fp = popen (cmd, "r");
if (fp != NULL) {
buffer = _read_stream (fp);
int status = -1;
char *buffer = NULL;
+ VERBOSE (DEBUG, fprintf (stdout, "open file: %s\n", name));
FILE *fd = fopen (name, "r");
if (fd != NULL) {
buffer = _read_stream (fd);
{
char *buffer = NULL;
+ VERBOSE (DEBUG, fprintf (stdout, "read stdin\n"));
buffer = _read_stream (stdin);
return buffer;
}
if (line[0] != '\0') {
lines = (char **) realloc (lines, (n + 2) * sizeof (char *));
- lines[n] = line;
+ lines[n++] = line;
} else {
free (line);
}
+ VERBOSE (DEBUG, fprintf (stdout, "split lines: %d\n", n));
return lines;
}
}
free (lines);
}
+
+/* vim: set ts=4 sw=4 et: */
#define mvwinputbox(w,y,x,l,c) (wmove(w,y,x)==ERR?w:winputbox(w,l,c))
#endif
+
+/* vim: set ts=4 sw=4 et: */