memcmp
Syntax
Defined in
Description
memcpy
Syntax
Defined in
Description
memmove
Syntax
Defined in
Description
Memory Compare
#include <string.h>
int memcmp(const void *cs, const void *ct, size_t n );
memcmp.c in rts.src
The memcmp function compares the first n characters of the object that ct
points to with the object that cs points to. The function returns one of the follow-
ing values:
< 0
if *cs is less than *ct
0
if *cs is equal to *ct
> 0
if *cs is greater than *ct
The memcmp function is similar to strncmp, except that the objects that
memcmp compares can contain values of 0. The memcmp function is
expanded inline when the −x option is used.
Memory Block Copy — Nonoverlapping
#include <string.h>
void *memcpy(void *s1, const void *s2, size_t n );
memcpy.c in rts.src
The memcpy function copies n characters from the object that s2 points to into
the object that s1 points to. If you attempt to copy characters of overlapping
objects, the function's behavior is undefined. The function returns the value
of s1.
The memcpy function is similar to strncpy, except that the objects that memcpy
copies can contain values of 0. The memcpy function is expanded inline when
the −x option is used.
Memory Block Copy — Overlapping
#include <string.h>
void *memmove(void *s1, const void *s2, size_t n );
memmove.c in rts.src
The memmove function moves n characters from the object that s2 points to
into the object that s1 points to; the function returns the value of s1. The
memmove function correctly copies characters between overlapping objects.
Run-Time-Support Functions
memmove
7-39
Need help?
Do you have a question about the TMS320C2x and is the answer not in the manual?