?? tst_strrchr.c
字號:
#include <string.h>
#include <stdio.h> /* for printf */
void tst_strrchr (void) {
char *s;
char buf [] = "This is a test";
s = strrchr (buf, 't');
if (s != NULL)
printf ("found the last 't' at %s\n", s);
}
void tst_strrpos ( char *s) {
int i;
i = strpos (s, ' ');
if (i == -1)
printf ("No spaces found in %s\n", s);
else
printf ("Last space in %s is at offset %d\n", s, i);
}
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -