随笔分类 -  C

摘要:long int strtol(const char *nptr, char **endptr, int base) strtol()会将nptr指向的字符串,根据参数base,按权转化为long int, 然后返回这个值。 参数base的范围为2~36,和0;它决定了字符串以被转换为整数的权值。可 阅读全文
posted @ 2018-09-04 21:47 BurgundyRed 阅读(1702) 评论(0) 推荐(0)
摘要:Allocating memory on the heap #include <stdlib.h> void *calloc(size_t numitems , size_t size ); Returns pointer to allocated memory on success, or NUL 阅读全文
posted @ 2018-09-04 21:46 BurgundyRed 阅读(122) 评论(0) 推荐(0)