mirror of
git://sourceware.org/git/glibc.git
synced 2024-12-27 04:41:02 +08:00
17 lines
262 B
C
17 lines
262 B
C
|
#include <stdio.h>
|
||
|
|
||
|
static int
|
||
|
do_test (void)
|
||
|
{
|
||
|
static const char buf[] = " ";
|
||
|
char *str;
|
||
|
|
||
|
int r = sscanf (buf, "%as", &str);
|
||
|
printf ("%d %p\n", r, str);
|
||
|
|
||
|
return r != -1 || str != NULL;
|
||
|
}
|
||
|
|
||
|
#define TEST_FUNCTION do_test ()
|
||
|
#include "../test-skeleton.c"
|