kiwmic: Read reply from kiwmi

This commit is contained in:
buffet 2019-04-10 11:42:06 +02:00
parent fe8b10a742
commit 6d33b5b222

View file

@ -57,7 +57,13 @@ main(int argc, char **argv)
fprintf(socket_file, "%c", '\0'); fprintf(socket_file, "%c", '\0');
fflush(socket_file); fflush(socket_file);
// TODO: read result int c;
while ((c = getc(socket_file)) != '\0') {
putchar(c);
if (c == '\n') {
fflush(stdout);
}
}
fclose(socket_file); fclose(socket_file);
} }