Simple c code to do integer to string conver

xiaoxiao2021-03-06  40

Char * ITOA (int val, int base) {static char buf [32] = {0}; int i = 30; for (; VAL && I; --I, VAL / = Base) BUF [I] = "0123456789abcdef "[Val% Base]; Return & BUF [i 1];

转载请注明原文地址:https://www.9cbs.com/read-57061.html

New Post(0)