LeapGL/tests/event_injector/sockets.c
/* this function returns a string describing the latest Winsock error */
this function returns a string describing the latest Winsock error
this function returns a string describing the latest Winsock error
const char*
_errno_str(void)
{
    const WinsockError*  werr   = _winsock_errors;
    const char*          result = NULL;
    for ( ; werr->string; werr++ ) {
        if (werr->winsock == winsock_error) {
            result = werr->string;
            break;
        }
    }
    if (result == NULL) {
        result = "Unknown socket error";
    }
    return result;
}
const char * _errno_str ( void ) { const WinsockError * werr = _winsock_errors ; const char * result = NULL ; for ( ; werr -> string ; werr ++ ) { if ( werr -> winsock == winsock_error ) { result = werr -> string ; break ; } } if ( result == NULL ) { result = " " ; } return result ; }
this function returns a string describing the latest Winsock error
this function returns a string describing the latest Winsock error