diff options
author | daniel <danieruru@gmail.com> | 2013-01-13 13:46:40 +0900 |
---|---|---|
committer | daniel <danieruru@gmail.com> | 2013-01-13 13:46:40 +0900 |
commit | 714b4e092f7dfc3bdbc6ea864e85cb144b1b7277 (patch) | |
tree | cb077b8541880c50139d13fbc8ffdce873f21176 /libvxi11client/client.c | |
parent | 7f2e52e8dbcda238268dd7339ba8c3dce908e252 (diff) |
Would help to actually pass the data read back out
Diffstat (limited to 'libvxi11client/client.c')
-rw-r--r-- | libvxi11client/client.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/libvxi11client/client.c b/libvxi11client/client.c index 6b4496e..ee5fe47 100644 --- a/libvxi11client/client.c +++ b/libvxi11client/client.c @@ -56,9 +56,10 @@ int main(int argc, char *argv[]) { printf("Error writing data\n"); // read some bytes - int bytesread = vxi11_read(NULL, 0, false, false, 0); + char buffer[1024]; + int bytesread = vxi11_read(buffer, sizeof(buffer), false, false, 0); if (bytesread >= 0) - printf("Read %d bytes\n", bytesread); + printf("Read %d bytes, %s\n", bytesread, buffer); else printf("Error reading data\n"); |