memccpy.c
来自「<B>Digital的Unix操作系统VAX 4.2源码</B>」· C语言 代码 · 共 18 行
C
18 行
/* @(#)memccpy.c 1.1 *//*LINTLIBRARY*//* * Copy s2 to s1, stopping if character c is copied. Copy no more than n bytes. * Return a pointer to the byte after character c in the copy, * or NULL if c is not found in the first n bytes. */char *memccpy(s1, s2, c, n)register char *s1, *s2;register int c, n;{ while (--n >= 0) if ((*s1++ = *s2++) == c) return (s1); return (0);}
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?