Skip to content
Snippets Groups Projects
Commit 9183306e authored by Kirill's avatar Kirill
Browse files

Add check(n)

parent 9072d063
Branches
No related merge requests found
......@@ -59,6 +59,7 @@ int main (int argc, char * argv[])
memset(buffer, 0, sizeof(buffer));
ssize_t n;
while ((n = recv(new_socket, buffer, SIZE - 1, 0)) > 0) {
CHECK(n);
buffer[n] = '\0';
printf("%s", buffer);
}
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment