memccpy.c File Reference


Detailed Description

The memccpy() replacement function.

Author:
Pekka Pessi <Pekka.Pessi@nokia-email.address.hidden>
Date:
Created: Thu Nov 17 17:45:51 EET 2005 ppessi

#include "config.h"
#include <string.h>
#include <limits.h>

Include dependency graph for memccpy.c:


Functions

void * memccpy (void *dest, const void *src, int c, size_t n)
 Copy memory until c is found.

Function Documentation

void* memccpy ( void *  dest,
const void *  src,
int  c,
size_t  n 
)

Copy memory until c is found.

Copies no more than n bytes from memory area src to memory area dest, stopping after the character c is copied and found.

Parameters:
dest pointer to destination area  
src pointer to source area
c terminating byte
n size of destination area
Returns:
Returns a pointer to the next character in dest after c, or NULL if c was not found in the first n characters of src.


Sofia-SIP 1.12.4 - Copyright (C) 2006 Nokia Corporation. All rights reserved. Licensed under the terms of the GNU Lesser General Public License.