当前位置:网站首页>Common self realization functions in C language development

Common self realization functions in C language development

2022-06-24 21:05:00 A wood of light snow

String rotation int Integers

int str2int(char *str)
{
    int val = 0;

    while (*str >= '0' && *str <= '9') {
        val = val * 10 + (*str - '0');
        str++;
    }

    return val;
}

原网站

版权声明
本文为[A wood of light snow]所创,转载请带上原文链接,感谢
https://yzsam.com/2022/02/202202211321280271.html