OpenCores
URL https://opencores.org/ocsvn/openrisc/openrisc/trunk

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [or1ksim/] [port/] [strndup.c] - Diff between revs 19 and 60

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

Rev 19 Rev 60
Line 27... Line 27...
/* Autoconf and/or portability configuration */
/* Autoconf and/or portability configuration */
#include "config.h"
#include "config.h"
 
 
 
 
#ifndef HAVE_STRNDUP
#ifndef HAVE_STRNDUP
 
/* the definition of size_t is provided in stddef.h */
 
#include <stddef.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.