MEMCCPY
Section: Linux Programmer's Manual (3)
Updated: 1993-04-10
Index
JM Home Page
roff page
名前
memccpy - メモリ領域をコピーする
書式
#include <string.h>
void *memccpy(void *dest, const void *src, int c, size_t n);
説明
memccpy()
は、メモリ領域 src からメモリ領域 dest に
最大で n バイトのコピーを行う。
n バイトコピーする前に文字 c が見つかると、
そこでコピーを中止する。
コピー元とコピー先のメモリ領域が重なっている場合、
結果は不定である。
返り値
memccpy()
は、dest 中に見つかった c の
次にあるキャラクター型の変数を指すポインタを返す。
見つからなかった場合、NULL を返す。
準拠
SVr4, 4.3BSD, POSIX.1-2001.
関連項目
bcopy(3),
memcpy(3),
memmove(3),
strcpy(3),
strncpy(3)
Index
- 名前
-
- 書式
-
- 説明
-
- 返り値
-
- 準拠
-
- 関連項目
-
This document was created by
man2html,
using the manual pages.
Time: 03:26:48 GMT, April 25, 2010