MEMCPY(3) BSD Library Functions Manual MEMCPY(3)NAME
memcpy -- copy byte string
LIBRARY
Standard C Library (libc, -lc)
SYNOPSIS
#include <string.h>
void *
memcpy(void *dst, const void *src, size_t len);
DESCRIPTION
The memcpy() function copies len bytes from string src to string dst.
RETURN VALUES
The memcpy() function returns the original value of dst.
SEE ALSO bcopy(3), memccpy(3), memmove(3), strcpy(3), wmemcpy(3)STANDARDS
The memcpy() function conforms to ISO/IEC 9899:1990 (``ISO C90'').
BUGS
In this implementation memcpy() is implemented using bcopy(3), and therefore the strings may overlap. On other systems, copying overlapping
strings may produce surprises. Programs intended to be portable should use memmove(3) when src and dst may overlap.
BSD June 4, 1993 BSD
Check Out this Related Man Page
BSTRING(3) BSD Library Functions Manual BSTRING(3)NAME
memccpy, memchr, memcmp, memcpy, memmem, memmove, memset -- byte string operations
LIBRARY
Standard C Library (libc, -lc)
SYNOPSIS
#include <string.h>
void *
memchr(const void *b, int c, size_t len);
int
memcmp(const void *b1, const void *b2, size_t len);
void *
memccpy(void *dst, const void *src, int c, size_t len);
void *
memcpy(void *dst, const void *src, size_t len);
void *
memmem(const void *block, size_t blen, const void *pat, size_t plen);
void *
memmove(void *dst, const void *src, size_t len);
void *
memset(void *b, int c, size_t len);
DESCRIPTION
These functions operate on variable length strings of bytes. They do not check for terminating nul bytes as the routines listed in string(3)
do.
See the specific manual pages for more information.
SEE ALSO memccpy(3), memchr(3), memcmp(3), memcpy(3), memmem(3), memmove(3), memset(3)STANDARDS
The functions memchr(), memcmp(), memcpy(), memmove(), and memset() conform to ANSI X3.159-1989 (``ANSI C89'').
HISTORY
The function memccpy() appeared in 4.3BSD.
BSD February 9, 2007 BSD
Hi
Having a lil trouble with a rather simple application I'm writing. It so happens that I have to copy some data using memcpy() and so far I've been doing just fine compiling it with VC.Net and running it on Windows XP. Now I'm trying to port the thing to Solaris (which shouldn't really be too... (3 Replies)
hey
i want to know the unix command for copying 1 string to another and allso adding a third string to the result.
for eg:
a
b="nbno"
c="uioio"
i want to copy contents of b to a and the append the contents of c to the contents of a and the result shud be in string a (1 Reply)
Hi ,
I am having records in a file like
00412772784705041008FRUITFUL STRWBRRY
00412772784703041008FRUITFUL STRWBERE
00000570632801448078 X
i have declared a structure like
typedef struct {
char Uname;
char Pname;
... (4 Replies)
Hello everybody,
I'm coding a test program for ARP protocol, and i don't know why i'm getting a SIGSEGV, i traced it with gdb and it says it's due to the memcpy function from /lib/libc.so.6.
Program received signal SIGSEGV, Segmentation fault.
0xb7e9e327 in memcpy () from /lib/libc.so.6
This... (5 Replies)
I am getting segmentation fault in memcpy.I have given sufficient memory but i dont know why it is occurring
char *finalptr = ( char *)malloc(1048576* sizeof(char));
finaloffset=0;have=685516;
memcpy(&(finalptr)+finaloffset,out,have);
finaloffset=685516;have=359910;... (23 Replies)
Dear All,
I am trying to compile OpenFOAM-1.7.x in RHEL. I could not able to compile some of the applications because of libc version issues.
It is saying
undefined reference to memcpy@GLIBC_2.14
Can anybody look into it?
Thanks & Regards,
linuxUser_ (3 Replies)