using restrict, so restrict to c99

This commit is contained in:
Henning Nielsen Lund 2017-08-01 14:52:45 +02:00
parent 976b6ae7e1
commit d6e5769bc5
2 changed files with 5 additions and 0 deletions

View File

@ -81,7 +81,9 @@ typedef long mbstate_t;
extern wint_t btowc(int c);
extern int wctob(wint_t c);
extern int mbsinit(const mbstate_t *ps);
#if defined(__STDC_VERSION__) && (__STDC_VERSION__ >= 199901L)
extern size_t mbrlen(const char *restrict s, size_t n, mbstate_t *restrict ps);
#endif /* __STDC_VERSION__ && __STDC_VERSION__ >= 199901L */
extern size_t wcrtomb(char *s, wchar_t wc, mbstate_t *ps);
extern size_t mbsrtowcs(wchar_t *pwcs, const char **src, size_t n, mbstate_t *ps);
extern size_t wcsrtombs(char *s, const wchar_t **src, size_t n, mbstate_t *ps);

View File

@ -37,9 +37,12 @@
/****************************************************************************/
#if defined(__STDC_VERSION__) && (__STDC_VERSION__ >= 199901L)
size_t
mbrlen(const char *restrict s, size_t n, mbstate_t *restrict ps)
{
/* ZZZ unimplemented */
return(0);
}
#endif /* __STDC_VERSION__ && __STDC_VERSION__ >= 199901L */