_itot_s = integer to t with security
- i integer
- to
- t, type t, this is because C++ can have ASCII or UNICODE, this source code can be compiled as either.
- s security/safe version, the function has 2 parameters for the buffer, the buffer and its length, so the function can prevent a buffer overload.
The 10 is so the string is a decimal, other popular options are 2 binary, 8 octal, 16 hex.
What you are doing will work OK.