Tao.Sdl SDK Documentation

Sdl.SDL_putenv Method 

Puts a variable of the form "name=value" into the environment.

[Visual Basic]
Public Shared Function SDL_putenv( _
   ByVal variable As String _
) As Integer
[C#]
public static int SDL_putenv(
   string variable
);

Parameters

variable
The "name=value" pair to write to the environment.

Return Value

Returns -1 on an error or 0 on success.

Remarks

Not all environments have a working putenv(). SDL_putenv() is not available on Windows.

Binds to C-function call in SDL_getenv.h:

extern DECLSPEC int SDLCALL SDL_putenv(const char *variable)

See Also

Sdl Class | Tao.Sdl Namespace | SDL_getenv