SDLNet_Init

Name

SDLNet_Init -- Initialize the network API.

Synopsis

int SDLNet_Init()

Description

SDLNet_Init Initialize the network API. This must be called before using other functions in this library.

Return Value

Returns 0 on success, -1 on errors.

Note: SDL must be initialized before this call.

Example

if(SDL_Init(0)==-1) {
    printf("SDL_Init: %s\n", SDL_GetError());
    exit(1);
}
if(SDLNet_Init()==-1) {
    printf("SDLNet_Init: %s\n", SDLNet_GetError());
    exit(2);
}

See Also

SDLNet_Quit

SDLNet_Init (last edited 2008-04-17 08:18:10 by localhost)