arch/m68k-amiga: Define the gcc symbol 'start' instead of using .bss
[AROS.git] / compiler / clib / sscanf.c
blobab05fa19e3cb02c2678e0c411705476dfca5a120
1 /*
2 Copyright © 1995-2003, The AROS Development Team. All rights reserved.
3 $Id$
5 ANSI C function sscanf().
6 */
8 #define sscanf sscanf
10 #include <string.h>
11 #include <stdio.h>
12 #include <ctype.h>
13 #include <stdlib.h>
14 #include <stdarg.h>
17 /*****************************************************************************
19 NAME */
21 int sscanf (
23 /* SYNOPSIS */
24 const char *str,
25 const char *format,
26 ...)
28 /* FUNCTION
29 Scan the specified string and convert it into the arguments as
30 specified by format.
32 INPUTS
33 str - The routine examines this string.
34 format - Format string. See scanf() for a description
35 ... - Arguments for the result
37 RESULT
38 The number of converted parameters.
40 NOTES
42 EXAMPLE
44 BUGS
46 SEE ALSO
47 fscanf(), vscanf(), vfscanf(), vsscanf()
49 INTERNALS
51 ******************************************************************************/
53 int retval;
54 va_list args;
56 va_start(args, format);
57 retval = vsscanf(str, format, args);
58 va_end(args);
60 return retval;