URL
https://opencores.org/ocsvn/openrisc_2011-10-31/openrisc_2011-10-31/trunk
Only display areas with differences |
Details |
Blame |
View Log
Rev 207 |
Rev 345 |
#include <reent.h>
|
#include <reent.h>
|
#include <newlib.h>
|
#include <newlib.h>
|
#include <wchar.h>
|
#include <wchar.h>
|
#include <stdlib.h>
|
#include <stdlib.h>
|
#include <stdio.h>
|
#include <stdio.h>
|
#include <errno.h>
|
#include <errno.h>
|
|
|
size_t
|
size_t
|
mbrlen(const char *s, size_t n, mbstate_t *ps)
|
mbrlen(const char *s, size_t n, mbstate_t *ps)
|
{
|
{
|
#ifdef _MB_CAPABLE
|
#ifdef _MB_CAPABLE
|
if (ps == NULL)
|
if (ps == NULL)
|
{
|
{
|
_REENT_CHECK_MISC(_REENT);
|
_REENT_CHECK_MISC(_REENT);
|
ps = &(_REENT_MBRLEN_STATE(_REENT));
|
ps = &(_REENT_MBRLEN_STATE(_REENT));
|
}
|
}
|
#endif
|
#endif
|
|
|
return mbrtowc(NULL, s, n, ps);
|
return mbrtowc(NULL, s, n, ps);
|
}
|
}
|
|
|
© copyright 1999-2024
OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.