Created
June 30, 2016 00:53
-
-
Save kierdavis/d17b59d78bcbfbd497fc6354a7459f6a to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
typedef struct { | |
int a; | |
char *b; | |
uint8_t c; | |
} mystruct; | |
void call_and_unpack(int *a, char **b, uint8_t *c) { | |
mystruct s = myfunction(); | |
*a = s.a; | |
*b = s.b; | |
*c = s.c; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment