用于c的itoa工具
Posted
tags:
篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了用于c的itoa工具相关的知识,希望对你有一定的参考价值。
A implementation for itoa with c.itoa is function that convert a integer to a string.
/** * C++ version 0.4 char* style "itoa": * Written by Lukás Chmela * Released under GPLv3. */ char* itoa_c(int value, char* result, int base) { // check that the base if valid if ( base < 2 || base > 36 ) { *result = '