Skip to content

Instantly share code, notes, and snippets.

@SkyBulk
Created January 23, 2020 18:21
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save SkyBulk/b17171d465fc8432ecfae6083b56d4d3 to your computer and use it in GitHub Desktop.
Save SkyBulk/b17171d465fc8432ecfae6083b56d4d3 to your computer and use it in GitHub Desktop.
nresp = packet_get_int();
if (nresp > 0) {
response = xmalloc(nresp*sizeof(char*));
for (i = 0; i < nresp; i++)
response[i] = packet_get_string(NULL);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment