其他分享
首页 > 其他分享> > 字符串转换为长整型 strtol

字符串转换为长整型 strtol

作者:互联网

strtol, wcstol

Convert strings to a long-integer value.

RoutineRequired Header
strtol <stdlib.h>
wcstol <stdlib.h>

 

long strtol( const char *nptr, char **endptr, int base );
long wcstol( const wchar_t *nptr, wchar_t **endptr, int base );

Parameters

nptr
Null-terminated string to convert
endptr
Pointer to character that stops scan
base
Number base to use 

 

标签:strtol,int,long,char,base,wcstol,整型,为长
来源: https://www.cnblogs.com/youhao1999/p/13567174.html