environ.h 615 B

123456789101112131415161718192021222324
  1. /* We manipulate environments represented as these structures. */
  2. struct environ
  3. {
  4. /* Number of usable slots allocated in VECTOR.
  5. VECTOR always has one slot not counted here,
  6. to hold the terminating zero. */
  7. int allocated;
  8. /* A vector of slots, ALLOCATED + 1 of them.
  9. The first few slots contain strings "VAR=VALUE"
  10. and the next one contains zero.
  11. Then come some unused slots. */
  12. char **vector;
  13. };
  14. struct environ *make_environ ();
  15. void free_environ ();
  16. void init_environ ();
  17. char *get_in_environ ();
  18. void set_in_environ ();
  19. void unset_in_environ ();
  20. char **environ_vector ();