mercredi 30 décembre 2020

Is there a version of itoa that returns how many characters were written to the buffer?

I am currently calling _itoa_s and then calling strlen to figure out how many characters were written. Is there a similar method to itoa that either returns the new pointer to the start of the buffer, or returns how many characters were written? I have not been able to find a method in the standard library that provides this functionality.

Aucun commentaire:

Enregistrer un commentaire