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

Subversion Repositories or1k

[/] [or1k/] [trunk/] [newlib-1.10.0/] [newlib/] [libc/] [stdio/] [vscanf.c] - Blame information for rev 1773

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

Line No. Rev Author Line
1 1010 ivang
/*-
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
 
20
#include <_ansi.h>
21
#include <stdio.h>
22
#include "local.h"
23
 
24
#ifdef _HAVE_STDC
25
#include <stdarg.h>
26
#else
27
#include <varargs.h>
28
#endif
29
 
30
/*
31
 * vscanf
32
 */
33
 
34
#ifndef _REENT_ONLY
35
 
36
int
37
_DEFUN (vscanf, (fmt, ap),
38
    _CONST char *fmt _AND
39
    va_list ap)
40
{
41
  return __svfscanf_r (_REENT, _stdin_r (_REENT), fmt, ap);
42
}
43
 
44
#endif /* !_REENT_ONLY */
45
 
46
int
47
_DEFUN (_vscanf_r, (ptr, fmt, ap),
48
    struct _reent *ptr _AND
49
    _CONST char *fmt _AND
50
    va_list ap)
51
{
52
  return __svfscanf_r (ptr, _stdin_r (ptr), fmt, ap);
53
}
54
 

powered by: WebSVN 2.1.0

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