mirror of
https://sourceware.org/git/glibc.git
synced 2024-11-22 13:00:06 +00:00
26e21e7554
2007-12-07 Ulrich Drepper <drepper@redhat.com> [BZ #5441] * stdio-common/vfscanf.c (_IO_vfwscanf): Don't free ptrs_to_free structure, it's allocated with alloca. * stdio-common/Makefile (tests): Add bug21. * stdio-common/bug21.c: New file. 2007-12-06 Aurelien Jarno <aurelien@aurel32.net> [BZ #5452] * sysdeps/unix/sysv/linux/bits/sched.h: Use __extension__ keyword for gcc's braced-groups. 2007-12-07 Ulrich Drepper <drepper@redhat.com> [BZ #5454] * inet/ether_line.c: Strip hostname of whitespaces. * inet/Makefile (tests): Add tst-ether_line. * inet/tst-ether_line.c: New file.
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"
|