INtime SDK Help
memccpy

Copies characters from one buffer to another, halting when the specified character is copied or when the specified number of bytes have been copied.

#include <string.h>

void * memccpy (void *dest, const void *src, int c, unsigned int count);

Parameters

dest
Pointer to destination buffer.
src
Pointer to source buffer.
c
Last character to copy.
count
Number of characters.

Return Values

A pointer to the byte in dest that immediately follows the character c.
Success.
A null pointer.
Failure. Failed to find 'c' in the given range, or some programmer error.

Requirements

Versions Defined in Include Link to
INtime 3.0 intime/rt/include/string.h string.h clib.lib

See Also

memchr, memcmp, memcpy, memset