休闲鞋鞋带隐藏系发:atio 函数

来源:百度文库 编辑:神马品牌网 时间:2024/05/13 07:10:31
做用和含义
最好还有相关函数的一些内容

函数名: atoi
功 能: 把字符串转换成长整型数
用 法: int atoi(const char *nptr);
程序例:
#include <stdlib.h>
#include <stdio.h>

int main(void)
{
int n;
char *str = "12345.67";

n = atoi(str);
printf("string = %s integer = %d\n", str, n);
return 0;
}