URL
https://opencores.org/ocsvn/openrisc_me/openrisc_me/trunk
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)
|
{
|
{
|
© copyright 1999-2024
OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.