JM プロジェクトは、主に Linux 関連のマニュアルページの日本語ページを翻訳・公開しています。
... dest にコピーする。コピー元の領域と コピー先の領域が重なってはならない。重なっている場合は memmove (3) を使うこと。 返り値 memcpy () は dest へのポインターを返す。 属性 この節で使用されている用語の説明については、 attributes (7) を参照。 インターフェー ... ス 属性 値 memcpy () Thread safety MT-Safe 準拠 POSIX.1-2001, POSIX.1-2008, C89, C99, SVr4, 4.3BSD. 注意 Failure to observe the requirement ... emory areas do not overlap has been the source of significant bugs. (POSIX and the C standards are explicit that employing memcpy () with overlapping areas produces undefined behavior.) Most notably, in glibc 2.13 a performance optimization of memcpy ( ... ... _t n ); void *memchr(const void * s , int c , size_t n ); int memcmp(const void * s1 , const void * s2 , size_t n ); void *memcpy(void * dest , const void * src , size_t n ); void *memfrob(void * s , size_t n ); void *memmem(const void * haystack , siz ... しい説明は、それぞれの man ページを参照すること。 注意 bcmp (), bcopy (), bzero () 関数は古いものである。代わりに memcmp (), memcpy () memset () を使うこと。 関連項目 bcmp (3), bcopy (3), bzero (3), memccpy (3), memchr (3), memcmp (3), memcpy (3), memfro ... ... y MT-Safe 準拠 4.3BSD. この関数は廃止予定である (POSIX.1-2001 では 過去の名残 (LEGACY) とされている)。新しいプログラムでは memcpy () や memmove () を使用すべきである。 memcpy () や memmove () では、最初の 2 つの引数の順序が入れ替わっていることに注意する ... こと。 POSIX.1-2008 では、 bcopy () の仕様が削除されている。 関連項目 bstring (3), memccpy (3), memcpy (3), memmove (3), strcpy (3), strncpy (3) この文書について この man ページは Linux man-pages プロジェクトのリリース 5.10 の ... ... 関数は、 memcpy (3) 関数に対応するワイド文字関数である。 この関数は、 src を先頭とする配列から dest を先頭とする配列 に n 個のワイド文字を ... (3) を使ってコピーすること。 プログラマは、少なくとも n 個のワイド文字が入る領域を dest に確保しなければならない。 返り値 wmemcpy () は dest を返す。 属性 この節で使用されている用語の説明については、 attributes (7) を参照。 インターフェース 属性 値 wme ... mcpy () Thread safety MT-Safe 準拠 POSIX.1-2001, POSIX.1-2008, C99. 関連項目 memcpy (3), wcscpy (3), wmemmove (3), wmempcpy (3) この文書について この man ページは Linux man-pages プロジェクトのリリース 5.10 ... ... ) 参照 */ #include < wchar.h > wchar_t *wmempcpy(wchar_t * dest , const wchar_t * src , size_t n ); 説明 mempcpy () 関数は memcpy (3) 関数とほぼ同一である。 この関数は、 src で始まるオブジェクトから n バイトを、 dest で指されるオブジェクトにコピーする。 ... sult = malloc(s1 + s2); if (result != NULL) mempcpy(mempcpy(result, o1, s1), o2, s2); return result; 関連項目 memccpy (3), memcpy (3), memmove (3), wmemcpy (3) この文書について この man ページは Linux man-pages プロジェクトのリリース 5.10 の一部である。 ... ... ) 参照 */ #include < wchar.h > wchar_t *wmempcpy(wchar_t * dest , const wchar_t * src , size_t n ); 説明 mempcpy () 関数は memcpy (3) 関数とほぼ同一である。 この関数は、 src で始まるオブジェクトから n バイトを、 dest で指されるオブジェクトにコピーする。 ... sult = malloc(s1 + s2); if (result != NULL) mempcpy(mempcpy(result, o1, s1), o2, s2); return result; 関連項目 memccpy (3), memcpy (3), memmove (3), wmemcpy (3) この文書について この man ページは Linux man-pages プロジェクトのリリース 5.10 の一部である。 ... ... bitrary payload data types. Applications should not cast it to a pointer type matching the payload, but should instead use memcpy (3) to copy data to or from a suitably declared object. * CMSG_LEN () は、 cmsghdr 構造体の cmsg_len メンバにデータを格納す ... msgh); cmsg != NULL; cmsg = CMSG_NXTHDR(&msgh, cmsg)) { if (cmsg->cmsg_level == IPPROTO_IP && cmsg->cmsg_type == IP_TTL) { memcpy(&receive_ttl, CMSG_DATA(cmsg), sizeof(received_ttl)); break; } } if (cmsg == NULL) { /* Error: IP_TTL not enabled or small ... MSG_FIRSTHDR(&msg); cmsg->cmsg_level = SOL_SOCKET; cmsg->cmsg_type = SCM_RIGHTS; cmsg->cmsg_len = CMSG_LEN(sizeof(myfds)); memcpy(CMSG_DATA(cmsg), myfds, sizeof(myfds)); 関連項目 recvmsg (2), sendmsg (2) RFC 2292 この文書について この man ページは Linu ... ... bitrary payload data types. Applications should not cast it to a pointer type matching the payload, but should instead use memcpy (3) to copy data to or from a suitably declared object. * CMSG_LEN () は、 cmsghdr 構造体の cmsg_len メンバにデータを格納す ... msgh); cmsg != NULL; cmsg = CMSG_NXTHDR(&msgh, cmsg)) { if (cmsg->cmsg_level == IPPROTO_IP && cmsg->cmsg_type == IP_TTL) { memcpy(&receive_ttl, CMSG_DATA(cmsg), sizeof(received_ttl)); break; } } if (cmsg == NULL) { /* Error: IP_TTL not enabled or small ... MSG_FIRSTHDR(&msg); cmsg->cmsg_level = SOL_SOCKET; cmsg->cmsg_type = SCM_RIGHTS; cmsg->cmsg_len = CMSG_LEN(sizeof(myfds)); memcpy(CMSG_DATA(cmsg), myfds, sizeof(myfds)); 関連項目 recvmsg (2), sendmsg (2) RFC 2292 この文書について この man ページは Linu ... ... bitrary payload data types. Applications should not cast it to a pointer type matching the payload, but should instead use memcpy (3) to copy data to or from a suitably declared object. * CMSG_LEN () は、 cmsghdr 構造体の cmsg_len メンバにデータを格納す ... msgh); cmsg != NULL; cmsg = CMSG_NXTHDR(&msgh, cmsg)) { if (cmsg->cmsg_level == IPPROTO_IP && cmsg->cmsg_type == IP_TTL) { memcpy(&receive_ttl, CMSG_DATA(cmsg), sizeof(received_ttl)); break; } } if (cmsg == NULL) { /* Error: IP_TTL not enabled or small ... MSG_FIRSTHDR(&msg); cmsg->cmsg_level = SOL_SOCKET; cmsg->cmsg_type = SCM_RIGHTS; cmsg->cmsg_len = CMSG_LEN(sizeof(myfds)); memcpy(CMSG_DATA(cmsg), myfds, sizeof(myfds)); 関連項目 recvmsg (2), sendmsg (2) RFC 2292 この文書について この man ページは Linu ... ... bitrary payload data types. Applications should not cast it to a pointer type matching the payload, but should instead use memcpy (3) to copy data to or from a suitably declared object. * CMSG_LEN () は、 cmsghdr 構造体の cmsg_len メンバにデータを格納す ... msgh); cmsg != NULL; cmsg = CMSG_NXTHDR(&msgh, cmsg)) { if (cmsg->cmsg_level == IPPROTO_IP && cmsg->cmsg_type == IP_TTL) { memcpy(&receive_ttl, CMSG_DATA(cmsg), sizeof(received_ttl)); break; } } if (cmsg == NULL) { /* Error: IP_TTL not enabled or small ... MSG_FIRSTHDR(&msg); cmsg->cmsg_level = SOL_SOCKET; cmsg->cmsg_type = SCM_RIGHTS; cmsg->cmsg_len = CMSG_LEN(sizeof(myfds)); memcpy(CMSG_DATA(cmsg), myfds, sizeof(myfds)); 関連項目 recvmsg (2), sendmsg (2) RFC 2292 この文書について この man ページは Linu ... 日本語の文書やマニュアルを配布している個人/プロジェクトへのリンクです。