Advertisement
qkzoo

Untitled

Mar 7th, 2024
45
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.17 KB | None | 0 0
  1. int s = strlen(SCORE_MESSAGE) * sizeof(char) + sizeof(uint16_t) + 16; // 16 is arbritary to make it work.
  2. char moves[s];
  3. snprintf(moves, s, SCORE_MESSAGE, gs->gameMoves);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement