logo
Free, unlimited AI code reviews that run on commit
git-lrc git-lrc GitHub Install Now We'd appreciate a star git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt

socket_getifname - get interface name

Description

       socket_getifname  returns the symbolic interface name for a network interface number.  The returned char*
       is a static buffer in the libc.  If you query the named for more than one interface, you have to save the
       name before calling socket_getifidx again.

       If something goes wrong, socket_getifname returns "[unknown]".

Name

       socket_getifname - get interface name

See Also

socket_getifidx(3), socket_connect6(3)

                                                                                             socket_getifname(3)

Syntax

#include<libowfat/socket.h>

       const char* socket_getifname(uint32 interface);

See Also