summaryrefslogtreecommitdiff
path: root/include/env.h
blob: 8f6ea873cddd4f03a61d5c6bcdfd19bfbc0fb27b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
#ifndef ENV_H
#define ENV_H

/*
 *  Revision 20171220, Erwin Hoffmann
 *  - removed variable names
 *  Revision 20160628, Kai Peter
 *  - updated code (*env_get) like in ucspi-tcp-0.88
 *  - commented out 'env_pick' and 'env_clear'
*/

extern char **environ;

extern int env_isinit;
extern int env_init();

extern /*@null@*/char *env_get(char *);
extern int env_put(char *,char *);
extern int env_puts(char *);
extern int env_set(char *);
extern int env_unset(char *);
extern char *env_pick();
extern void env_clear();

extern char *env_findeq(char *);

#define env_put2 env_put /* backwards compatibility */

#endif