Subversion Repositories SvarDOS

Rev

Rev 421 | Rev 570 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 421 Rev 436
Line 33... Line 33...
33
/* looks for varname in environment block and returns a far ptr to it if
33
/* looks for varname in environment block and returns a far ptr to it if
34
 * found, NULL otherwise. varname MUST be in upper-case and MUST be terminated
34
 * found, NULL otherwise. varname MUST be in upper-case and MUST be terminated
35
 * by either a = sign or a NULL terminator */
35
 * by either a = sign or a NULL terminator */
36
char far *env_lookup(unsigned short env_seg, const char *varname);
36
char far *env_lookup(unsigned short env_seg, const char *varname);
37
 
37
 
-
 
38
/* almost identical to env_lookup(), but instead of returning a pointer
-
 
39
 * to the 'NAME=value' string, it returns a pointer to value (or NULL if
-
 
40
 * var not found) */
-
 
41
char far *env_lookup_val(unsigned short env_seg, const char *varname);
-
 
42
 
38
/* returns the size, in bytes, of the allocated environment block */
43
/* returns the size, in bytes, of the allocated environment block */
39
unsigned short env_allocsz(unsigned short env_seg);
44
unsigned short env_allocsz(unsigned short env_seg);
40
 
45
 
41
/* remove a variable from environment, if present. returns 0 on success, non-zero if variable not found */
46
/* remove a variable from environment, if present. returns 0 on success, non-zero if variable not found */
42
int env_dropvar(unsigned short env_seg, const char *varname);
47
int env_dropvar(unsigned short env_seg, const char *varname);