📄 textrun.c
字号:
#include <stdlib.h>#include <string.h>/* * wrap around a string *text by step characters * repeated calls give a "running text" effect */void textrun(char *text, unsigned int step){char *tmp; if (text!=NULL) tmp=(char *)malloc(strlen(text)*sizeof(char)); else return; if (strlen(text)>step) { strcpy(tmp,&text[step]); strncat(tmp,text,step); strcpy(text,tmp); }}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -