📄 strlst.c
字号:
#include <stdio.h>#include <stdlib.h>#include <string.h>#include <ctype.h>char strlst(string)char *string;{ while (*string != '\0') { if (*(string+1) == '\0') return(*string); string++;} return('\0');}int trim(s)char *s;{ char *c; while (isspace(*(s + strlen(s) - 1))) *(s + strlen(s) - 1) = '\0'; c = s; while (*c == ' ' && (*c != '\0')) *c++ = *(c + 1); strcpy(s, c); return 1;}/* ---------------------------------------------------------------------- */int str_isnum(s)char *s;{ while(*s) if (!isdigit(*s++)) return 0; return 1;}/* ---------------------------------------------------------------------- */
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -