memspn.c File Reference


Detailed Description

The memspn() replacement function.

Author:
Pekka Pessi <Pekka.Pessi@nokia-email.address.hidden>
Date:
Created: Sat Apr 12 19:32:33 2003 ppessi

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

Include dependency graph for memspn.c:


Functions

size_t memspn (const void *mem, size_t memlen, const void *accept, size_t acceptlen)
 Scan memory for a set of bytes.

Function Documentation

size_t memspn ( const void *  mem,
size_t  memlen,
const void *  accept,
size_t  acceptlen 
)

Scan memory for a set of bytes.

The memspn() function calculates the length of the memory area mem which consists entirely of bytes in accept.

Parameters:
mem pointer to memory area
memlen size of mem in bytes
accept pointer to table containing bytes to accept
acceptlen size of accept table
Returns:
The memspn() function returns the number of bbytes in the memory area which consists entirely of bytes in accept.


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