Subversion Repositories Kolibri OS

Rev

Details | Last modification | View Log | RSS feed

Rev Author Line No. Line
6607 serge 1
/*-
2
 * Code created by modifying scanf.c which has following copyright.
3
 *
4
 * Copyright (c) 1990 The Regents of the University of California.
5
 * All rights reserved.
6
 *
7
 * Redistribution and use in source and binary forms are permitted
8
 * provided that the above copyright notice and this paragraph are
9
 * duplicated in all such forms and that any documentation,
10
 * advertising materials, and other materials related to such
11
 * distribution and use acknowledge that the software was developed
12
 * by the University of California, Berkeley.  The name of the
13
 * University may not be used to endorse or promote products derived
14
 * from this software without specific prior written permission.
15
 * THIS SOFTWARE IS PROVIDED ``AS IS'' AND WITHOUT ANY EXPRESS OR
16
 * IMPLIED WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED
17
 * WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE.
18
 */
19
/* Doc in vfwscanf.c */
20
 
21
#include <_ansi.h>
22
#include 
23
#include 
24
#include 
25
#ifdef _HAVE_STDC
26
#include 
27
#else
28
#include 
29
#endif
30
#include "local.h"
31
 
32
#ifndef _REENT_ONLY
33
 
34
int
35
vwscanf (_CONST wchar_t *__restrict fmt, va_list ap)
36
{
37
  struct _reent *reent = _REENT;
38
 
39
  _REENT_SMALL_CHECK_INIT (reent);
40
  return __svfwscanf_r (reent, _stdin_r (reent), fmt, ap);
41
}
42
 
43
#endif /* !_REENT_ONLY */
44
 
45
int
46
_vwscanf_r (struct _reent *ptr, _CONST wchar_t *fmt, va_list ap)
47
{
48
  _REENT_SMALL_CHECK_INIT (ptr);
49
  return __svfwscanf_r (ptr, _stdin_r (ptr), fmt, ap);
50
}
51