📄 strnwrd.c
字号:
/************************************************************* * File: lib/strnwrd.c * Purpose: Part of C runtime library * Author: Phil Bunce (pjb@carmel.com) * Revision History: * 970304 Start of revision history */#include "string.h"/** strnwrd(p) returns a count of words in p */strnwrd(p)char *p;{int n;if (!p) return(0);for (n=0;*p;n++) { while (isspace(*p)) p++; if (! *p) return(n); while (!isspace(*p) && *p != 0) p++; }return(n);}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -