📄 str.c
字号:
/* * Author strongly advices against using this code, or a part of it, * in an application designed to run on any Microsoft(tm) platform. * * See doc/README for more information about COPYING terms. */#include "mcd.h"size_t str_len(const unsigned char *str) { register size_t n=0; if (!str) return 0; for (n=0; *str; ++str) ++n; return n;}size_t str_ncpy(unsigned char *dst, const unsigned char *src, size_t n) { register unsigned char *d=dst; register const unsigned char *s=src; for (n=0;;n++) { if (!(*d=*s)) break; ++d; ++s; } return n;}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -