📄 cfcn_ex.c
字号:
const char *str = "hello";
void *malloc(int);
char *strcpy(char *, const char *);
int printf(const char *, ...);
int exit(int);
int strlen(const char *);
int main()
{ /* C language program */
/* allocate space to hold a copy of str */
char* s = malloc(strlen(str)+1);
strcpy(s, str); /* copy s to str */
printf("%s, world\n", s); /* print s followed by ", world\n" */
exit(0); /* exit program and return 0 to the OS */
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -