Files
KirkOS/user/include/mlibc/tests/posix/if_indextoname.c
T
kaguya 9a9b91c940 user: implement mlibc as the libc, finally.
It's finally done..

Signed-off-by: kaguya <vpshinomiya@protonmail.com>
2026-05-02 03:31:49 -04:00

14 lines
227 B
C

#include <assert.h>
#include <net/if.h>
#include <stdio.h>
int main() {
char name[IF_NAMESIZE];
assert(name == if_indextoname(1, name));
printf("test: name '%s'\n", name);
assert(1 == if_nametoindex(name));
return 0;
}