As mentioned in this conversion, the most commonly used under windows is the atoi () function. It is a pity that there is no itoa () function in Linux, only atoi () is very interesting and actually asymmetrical. Therefore, to convert from integer to char * in Linux, the following two methods are generally used: Second, use sprintf () function to implement sprintf (char * cVal
Several methods to convert Linux int type to char * type
Guess you like
Origin www.cnblogs.com/lblblb/p/12709968.html
Recommended
Ranking