Home | History | Annotate | Download | only in stdlib

Lines Matching refs:variable

38 /* Put a variable of the form "name=value" into the environment */
39 int SDL_putenv(const char *variable)
45 sep = SDL_strchr(variable, '=');
49 bufferlen = SDL_strlen(variable)+1;
58 SDL_strlcpy(SDL_envmem, variable, bufferlen);
59 value = SDL_envmem + (sep - variable);
67 /* Retrieve a variable named "name" from the environment */
92 /* Put a variable of the form "name=value" into the environment */
93 int SDL_putenv(const char *variable)
102 if ( ! variable ) {
105 name = variable;
106 for ( value=variable; *value && (*value != '='); ++value ) {
115 /* Allocate memory for the variable */
116 new_variable = SDL_strdup(variable);
155 /* Retrieve a variable named "name" from the environment */
185 printf("Checking for non-existent variable... ");
237 printf("Checking for non-existent variable... ");