Create a branch for network fixes.

svn path=/branches/aicom-network-fixes/; revision=34994
This commit is contained in:
Art Yerkes 2008-08-01 11:32:26 +00:00
parent 0e213bbc00
commit c501d8112c
18148 changed files with 0 additions and 860488 deletions

View file

@ -0,0 +1,21 @@
#include <search.h>
#include <stdlib.h>
#include <string.h>
/*
* @implemented
*/
void *_lsearch(const void *key, void *base, size_t *nelp, size_t width,
int (*compar)(const void *, const void *))
{
void *ret_find = _lfind(key,base,nelp,width,compar);
if (ret_find != NULL)
return ret_find;
memcpy((void*)((int*)base + (*nelp*width)), key, width);
(*nelp)++;
return base;
}