test.c
来自「一个通过无线设备传输文件程序主要涉及内容是网络通信和RS232设置」· C语言 代码 · 共 26 行
C
26 行
#include <stdlib.h>#include <sys/types.h>#include <unistd.h>#include <stdio.h>void test(char **p){ *p = (char*) realloc (*p, 128*sizeof(char)); if((*p)==NULL){ printf("malloc error\n"); exit(1); }}main(){ char **p; test(p);printf("*******************\n"); free(p);}
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?