From e656498ea979f746fa5e324c4cbd433a5a3de562 Mon Sep 17 00:00:00 2001 From: Andreas Jaeger Date: Wed, 17 May 2000 12:19:16 +0000 Subject: Update. 2000-05-17 Andreas Jaeger * 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. --- string/argz.h | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) (limited to 'string/argz.h') diff --git a/string/argz.h b/string/argz.h index 45441db221..d4ff07dc9d 100644 --- a/string/argz.h +++ b/string/argz.h @@ -1,5 +1,5 @@ /* Routines for dealing with '\0' separated arg vectors. - Copyright (C) 1995, 96, 97, 98, 99 Free Software Foundation, Inc. + Copyright (C) 1995, 96, 97, 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 @@ -56,8 +56,10 @@ extern error_t argz_create_sep (__const char *__restrict __string, size_t *__restrict __len) __THROW; /* Returns the number of strings in ARGZ. */ -extern size_t __argz_count (__const char *__argz, size_t __len) __THROW; -extern size_t argz_count (__const char *__argz, size_t __len) __THROW; +extern size_t __argz_count (__const char *__argz, size_t __len) + __THROW __attribute_pure__; +extern size_t argz_count (__const char *__argz, size_t __len) + __THROW __attribute_pure__; /* Puts pointers to each string in ARGZ into ARGV, which must be large enough to hold them all. */ -- cgit 1.4.1