OpenCores
URL https://opencores.org/ocsvn/openrisc_2011-10-31/openrisc_2011-10-31/trunk

Subversion Repositories openrisc_2011-10-31

[/] [openrisc/] [trunk/] [or1ksim/] [port/] [strndup.c] - Diff between revs 82 and 96

Go to most recent revision | Show entire file | Details | Blame | View Log

Rev 82 Rev 96
Line 28... Line 28...
#include "config.h"
#include "config.h"
 
 
 
 
#ifndef HAVE_STRNDUP
#ifndef HAVE_STRNDUP
 
 
/* the definition of size_t is provided in stddef.h */
/* the definition of size_t is provided in stddef.h.
#include <stddef.h>
 
 
 
 
   Mark Jarvin patch notes that stdlib.h and string.h are also needed. */
 
#include <stddef.h>
 
#include <stdlib.h>
 
#include <string.h>
 
 
/* Taken from glibc */
/* Taken from glibc */
char *
char *
strndup (const char *s, size_t n)
strndup (const char *s, size_t n)
{
{

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.