source: trunk/minix/lib/stdio/vsscanf.c@ 15

Last change on this file since 15 was 9, checked in by Mattia Monga, 14 years ago

Minix 3.1.2a

File size: 462 bytes
Line 
1/*
2 * vsscanf - read formatted output from a string
3 */
4
5#include <stdio.h>
6#include <stdarg.h>
7#include <string.h>
8#include "loc_incl.h"
9
10int vsscanf(const char *s, const char *format, va_list ap)
11{
12 FILE tmp_stream;
13
14 tmp_stream._fd = -1;
15 tmp_stream._flags = _IOREAD + _IONBF + _IOREADING;
16 tmp_stream._buf = (unsigned char *) s;
17 tmp_stream._ptr = (unsigned char *) s;
18 tmp_stream._count = strlen(s);
19
20 return _doscan(&tmp_stream, format, ap);
21}
Note: See TracBrowser for help on using the repository browser.