SilverScreen Solid Modeler

get_env

get_env

Previous topic Next topic  

get_env

Previous topic Next topic JavaScript is required for the print function  

SilverScreenAPI

 

int get_env ( char *var, char *buf )

 

char *var;    // environment variable name

char *buf;    // character buffer to receive environment string

 

 




Synopsis

#include "silver.h"

 

The get_env function copies the environment string associated with the environment variable var into the character buffer pointed to by buf .

 

 

Parameters

var is a null-terminated string containing the name of the environment variable. buf is a character buffer that is to receive the associated environment string.

 

 

Return Value

get_env copies the associated environment string into buf , and returns 1 if an environment variable with the name var exists, and otherwise 0.

 

 

See Also

getenv