fgetwc may clobber errno when the result is not WEOF
[libc-test.git] / src / api / net_if.c
blob9ce11e82b9d562cef312f728efb208041120b40d
1 #include <net/if.h>
2 #define F(t,n) {t *y = &x.n;}
3 #define C(n) switch(n){case n:;}
4 static void f()
7 struct if_nameindex x;
8 F(unsigned, if_index)
9 F(char*, if_name)
11 C(IF_NAMESIZE)
12 {void(*p)(struct if_nameindex*) = if_freenameindex;}
13 {char*(*p)(unsigned,char*) = if_indextoname;}
14 {struct if_nameindex*(*p)(void) = if_nameindex;}
15 {unsigned(*p)(const char*) = if_nametoindex;}