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

Subversion Repositories openrisc_me

[/] [openrisc/] [trunk/] [gnu-src/] [newlib-1.18.0/] [newlib/] [libc/] [stdlib/] [mbrlen.c] - Blame information for rev 309

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

Line No. Rev Author Line
1 207 jeremybenn
#include <reent.h>
2
#include <newlib.h>
3
#include <wchar.h>
4
#include <stdlib.h>
5
#include <stdio.h>
6
#include <errno.h>
7
 
8
size_t
9
mbrlen(const char *s, size_t n, mbstate_t *ps)
10
{
11
#ifdef _MB_CAPABLE
12
  if (ps == NULL)
13
    {
14
      _REENT_CHECK_MISC(_REENT);
15
      ps = &(_REENT_MBRLEN_STATE(_REENT));
16
    }
17
#endif
18
 
19
  return mbrtowc(NULL, s, n, ps);
20
}

powered by: WebSVN 2.1.0

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