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

Subversion Repositories openrisc

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

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

Rev 60 Rev 82
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 */
/* the definition of size_t is provided in stddef.h */
#include <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)
{
{
        char *new;
        char *new;

powered by: WebSVN 2.1.0

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