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

Subversion Repositories openrisc_me

[/] [openrisc/] [trunk/] [gnu-src/] [newlib-1.17.0/] [newlib/] [libc/] [string/] [strndup.c] - Blame information for rev 148

Go to most recent revision | Details | Compare with Previous | View Log

Line No. Rev Author Line
1 148 jeremybenn
#ifndef _REENT_ONLY
2
 
3
#include <_ansi.h>
4
#include <reent.h>
5
#include <stdlib.h>
6
#include <string.h>
7
 
8
char *
9
_DEFUN (strndup, (str, n),
10
        _CONST char *str _AND
11
        size_t n)
12
{
13
  return _strndup_r (_REENT, str, n);
14
}
15
 
16
#endif /* !_REENT_ONLY */

powered by: WebSVN 2.1.0

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