def METHOD_NAME(index):
    if not isinstance(index, int):
        raise TypeError('index must be an int.')
    libc.METHOD_NAME.argtypes = [ctypes.c_uint32, ctypes.c_char_p]
    libc.METHOD_NAME.restype = ctypes.c_char_p
    ifname = ctypes.create_string_buffer(32)
    ifname = libc.METHOD_NAME(index, ifname)
    if not ifname:
        raise RuntimeError("Invalid Index")
    return ifname