#include <string.h>
|
|
void *
memccpy (void *dst, const void *src, int c, size_t len); |
memccpy function returns a pointer to the next character in dst after c, or NULL if c was not found in the first n characters of src
#include <string.h>
#include <stdio.h>
int main()
{
char one[50] = {"\0"};
(void) memccpy(one, "abcdefgh",8,3);
printf("String after memcpy %s\n",one);
(void) memccpy(one, "Hello",5,1);
printf("String after memcpy %s\n",one);
return 0;
}
Output
String after memcpy abc
String after memcpy Hbc
|
© 2005-2007 Nokia |