c语言基础
aimiyo34
这个作者很懒,什么都没留下…
展开
专栏收录文章
- 默认排序
- 最新发布
- 最早发布
- 最多阅读
- 最少阅读
-
指针判空
指针判空 代码中遇到了太多判空的处理,真的绕晕了 整理一下 - 指针 - 数组 - NULL - ‘\0’ - ‘\r’ - ‘\n’ 空指针 空指针不指向任何实际的对象或者函数 char *ptr = NULL; char *p1 = 0; printf("p1 %s\n",p1); printf("ptr %s\n",ptr); 输出...转载 2018-08-23 17:44:10 · 2243 阅读 · 0 评论 -
malloc
头文件 #include <stdlib.h> 函数源码 #include "types.h" #include "stddef.h" #include "string.h" /* Imported functions */ extern void prom_printf (char *fmt, ...); static char *malloc_ptr = 0; s...原创 2018-08-24 10:09:22 · 225 阅读 · 0 评论
分享