diff options
author | Andreas Jaeger <aj@suse.de> | 2000-05-17 12:19:16 +0000 |
---|---|---|
committer | Andreas Jaeger <aj@suse.de> | 2000-05-17 12:19:16 +0000 |
commit | e656498ea979f746fa5e324c4cbd433a5a3de562 (patch) | |
tree | 58b7c6678d27915a200ecc02f04429d240b6ca56 /string/envz.h | |
parent | e25054c49c92587a07de4badfe4b7e01ceb99858 (diff) | |
download | glibc-e656498ea979f746fa5e324c4cbd433a5a3de562.zip glibc-e656498ea979f746fa5e324c4cbd433a5a3de562.tar.gz glibc-e656498ea979f746fa5e324c4cbd433a5a3de562.tar.bz2 |
Update.
2000-05-17 Andreas Jaeger <aj@suse.de>
* string/envz.h: Add pure attributes if possible.
* string/argz.h: argz_count is a pure function.
* string/strings.h: Add pure and const attributes if possible.
Diffstat (limited to 'string/envz.h')
-rw-r--r-- | string/envz.h | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/string/envz.h b/string/envz.h index 1595a95..293166b 100644 --- a/string/envz.h +++ b/string/envz.h @@ -1,5 +1,5 @@ /* Routines for dealing with '\0' separated environment vectors - Copyright (C) 1995, 1996, 1998, 1999 Free Software Foundation, Inc. + Copyright (C) 1995, 96, 98, 99, 2000 Free Software Foundation, Inc. The GNU C Library is free software; you can redistribute it and/or modify it under the terms of the GNU Library General Public License as @@ -31,12 +31,14 @@ __BEGIN_DECLS /* Returns a pointer to the entry in ENVZ for NAME, or 0 if there is none. */ extern char *envz_entry (__const char *__restrict __envz, size_t __envz_len, - __const char *__restrict __name) __THROW; + __const char *__restrict __name) + __THROW __attribute_pure__; /* Returns a pointer to the value portion of the entry in ENVZ for NAME, or 0 if there is none. */ extern char *envz_get (__const char *__restrict __envz, size_t __envz_len, - __const char *__restrict __name) __THROW; + __const char *__restrict __name) + __THROW __attribute_pure__; /* Adds an entry for NAME with value VALUE to ENVZ & ENVZ_LEN. If an entry with the same name already exists in ENVZ, it is removed. If VALUE is |