OSDN Git Service

projects clean up 1
[pinoc/pinoc.git] / pinoc_gcc / lib / include / envz.h
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
7 #include <errno.h>
8 #include <sys/types.h>
9
10 /* The newlib implementation of these functions assumes that sizeof(char) == 1. */
11 char * envz_entry (const char *envz, size_t envz_len, const char *name);
12 char * envz_get (const char *envz, size_t envz_len, const char *name);
13 error_t envz_add (char **envz, size_t *envz_len, const char *name, const char *value);
14 error_t envz_merge (char **envz, size_t *envz_len, const char *envz2, size_t envz2_len, int override);
15 void envz_remove(char **envz, size_t *envz_len, const char *name);
16 void envz_strip (char **envz, size_t *envz_len);