Subversion Repositories Kolibri OS

Rev

Rev 4874 | Go to most recent revision | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 4874 Rev 4921
Line 5... Line 5...
5
INDEX
5
INDEX
6
	mbtowc
6
	mbtowc
Line 7... Line 7...
7
 
7
 
8
ANSI_SYNOPSIS
8
ANSI_SYNOPSIS
9
	#include 
9
	#include 
Line 10... Line 10...
10
	int mbtowc(wchar_t *<[pwc]>, const char *<[s]>, size_t <[n]>);
10
	int mbtowc(wchar_t *restrict <[pwc]>, const char *restrict <[s]>, size_t <[n]>);
11
 
11
 
12
TRAD_SYNOPSIS
12
TRAD_SYNOPSIS
13
	#include 
13
	#include 
Line 56... Line 56...
56
#include 
56
#include 
57
#include "local.h"
57
#include "local.h"
Line 58... Line 58...
58
 
58
 
59
int
59
int
60
_DEFUN (mbtowc, (pwc, s, n),
60
_DEFUN (mbtowc, (pwc, s, n),
61
        wchar_t *pwc _AND
61
        wchar_t *__restrict pwc _AND
62
        const char *s _AND
62
        const char *__restrict s _AND
63
        size_t n)
63
        size_t n)
64
{
64
{
65
#ifdef _MB_CAPABLE
65
#ifdef _MB_CAPABLE
-
 
66
  int retval = 0;
66
  int retval = 0;
67
  struct _reent *reent = _REENT;
Line 67... Line 68...
67
  mbstate_t *ps;
68
  mbstate_t *ps;
68
 
69
 
Line 69... Line 70...
69
  _REENT_CHECK_MISC(_REENT);
70
  _REENT_CHECK_MISC(reent);
Line 70... Line 71...
70
  ps = &(_REENT_MBTOWC_STATE(_REENT));
71
  ps = &(_REENT_MBTOWC_STATE(reent));
71
  
72
  
72
  retval = __mbtowc (_REENT, pwc, s, n, __locale_charset (), ps);
73
  retval = __mbtowc (reent, pwc, s, n, __locale_charset (), ps);
73
  
74