Q009

Untitled

Mar 22nd, 2014
162
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.31 KB | None | 0 0
  1. struct foobar
  2. {
  3. unsigned short v1, v2, v3;
  4. unsigned char v4, v5, v6, v7, v8;
  5. };
  6.  
  7. foobar n;
  8. sscanf(parseBuf, "char id=%hu x=%hu y=%hu width=%hhu height=%hhu xoffset=%hhu yoffset=%hhu xadvance=%hhu",
  9. &n.v1, &n.v2, &n.v3, &n.v4, &n.v5, &n.v6, &n.v7, &n.v8);
Advertisement
Add Comment
Please, Sign In to add comment