SHARE
TWEET

[C99, C+] Automated String Terminaion

ZoriaRPG Feb 27th, 2020 82 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. void insert_str_terminator(char *s)
  2. {
  3.     s[(sizeof(s) / sizeof(s[0]))-1] = '\0';
  4. }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
Top