kiwmic: Read reply from kiwmi
This commit is contained in:
parent
fe8b10a742
commit
6d33b5b222
1 changed files with 7 additions and 1 deletions
|
@ -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);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue