envz.h 781 B

12345678910111213141516
  1. /* Copyright (C) 2002 by Red Hat, Incorporated. All rights reserved.
  2. *
  3. * Permission to use, copy, modify, and distribute this software
  4. * is freely granted, provided that this notice is preserved.
  5. */
  6. #include <errno.h>
  7. #include <sys/types.h>
  8. /* The newlib implementation of these functions assumes that sizeof(char) == 1. */
  9. char * envz_entry (const char *envz, size_t envz_len, const char *name);
  10. char * envz_get (const char *envz, size_t envz_len, const char *name);
  11. error_t envz_add (char **envz, size_t *envz_len, const char *name, const char *value);
  12. error_t envz_merge (char **envz, size_t *envz_len, const char *envz2, size_t envz2_len, int override);
  13. void envz_remove(char **envz, size_t *envz_len, const char *name);
  14. void envz_strip (char **envz, size_t *envz_len);