Skip to content

Instantly share code, notes, and snippets.

@rwoloszyn
Created September 22, 2017 00:04
Show Gist options
  • Save rwoloszyn/8a6abcb121ad3049b84ea8bb3236a50b to your computer and use it in GitHub Desktop.
Save rwoloszyn/8a6abcb121ad3049b84ea8bb3236a50b to your computer and use it in GitHub Desktop.
Is this some kind of C struct alocation, Why not malloc ?
*ptr = '\n';
ptr++;
*ptr = '\n';
ptr++;
base = (PacketHdrBase*)ptr;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment