strlen()函数返回结束空字符前的字符串长度。
1 2 3 4 5 6 |
extern _ARMABI size_t strlen(const char * /*s*/) __attribute__((__nonnull__(1))); /* * computes the length of the string pointed to by s. * Returns: the number of characters that precede the terminating null * character. */ |
这个函数包含string.h后方可使用。
string.h文件位于”C:\Keil_v5\ARM\ARMCC\include\”