Use sprintf(). itoa() and gcvt() are not part of the standard library, so they won't be implemented everywhere. Besides, sprintf() gives you formatting options that itoa() doesn't.
Results that may be inaccessible to you are currently showing.
Hide inaccessible results