strlen.c
来自「nachos操作系统框架」· C语言 代码 · 共 12 行
C
12 行
#include "stdlib.h"/* returns the length of the character string str, not including the null-terminator */unsigned strlen(const char *str) { int result=0; while (*(str++) != 0) result++; return result;}
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?