2020年4月27日

atoi()和itoa()函数详解以及C语言实现(转)

摘要: atoi()函数 atoi()原型: int atoi(const char *str ); 函数功能:把字符串转换成整型数。 参数str:要进行转换的字符串 返回值:每个函数返回 int 值,此值由将输入字符作为数字解析而生成。 如果该输入无法转换为该类型的值,则atoi的返回值为 0。 注意:使 阅读全文

posted @ 2020-04-27 11:43 lh03061238 阅读(662) 评论(0) 推荐(0) 编辑

strcpy和strdup比较和详解 (转)

摘要: 原文:https://blog.csdn.net/koozxcv/article/details/49306751 strcpy和strdup比较和详解函数和功能描述:①extern char *strdup(char *s); 头文件:string.h 功能: 将串拷贝到新建的位置处 说 明:st 阅读全文

posted @ 2020-04-27 11:38 lh03061238 阅读(440) 评论(0) 推荐(0) 编辑

导航