Advertisement
ZoriaRPG

[C99, C+] Automated String Terminaion

Feb 27th, 2020
237
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C 0.08 KB | None | 0 0
  1. void insert_str_terminator(char *s)
  2. {
  3.     s[(sizeof(s) / sizeof(s[0]))-1] = '\0';
  4. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement