Back to index

glibc  2.9
Defines | Typedefs | Functions
argz.h File Reference
#include <features.h>
#include <errno.h>
#include <string.h>
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Defines

#define __need_error_t
#define __const   const

Typedefs

typedef int error_t

Functions

__BEGIN_DECLS error_t __argz_create (char *__const __argv[], char **__restrict __argz, size_t *__restrict __len) __THROW
error_t argz_create (char *__const __argv[], char **__restrict __argz, size_t *__restrict __len) __THROW
error_t __argz_create_sep (__const char *__restrict __string, int __sep, char **__restrict __argz, size_t *__restrict __len) __THROW
error_t argz_create_sep (__const char *__restrict __string, int __sep, char **__restrict __argz, size_t *__restrict __len) __THROW
size_t __argz_count (__const char *__argz, size_t __len) __THROW __attribute_pure__
size_t argz_count (__const char *__argz, size_t __len) __THROW __attribute_pure__
void __argz_extract (__const char *__restrict __argz, size_t __len, char **__restrict __argv) __THROW
void argz_extract (__const char *__restrict __argz, size_t __len, char **__restrict __argv) __THROW
void __argz_stringify (char *__argz, size_t __len, int __sep) __THROW
void argz_stringify (char *__argz, size_t __len, int __sep) __THROW
error_t __argz_append (char **__restrict __argz, size_t *__restrict __argz_len, __const char *__restrict __buf, size_t _buf_len) __THROW
error_t argz_append (char **__restrict __argz, size_t *__restrict __argz_len, __const char *__restrict __buf, size_t __buf_len) __THROW
error_t __argz_add (char **__restrict __argz, size_t *__restrict __argz_len, __const char *__restrict __str) __THROW
error_t argz_add (char **__restrict __argz, size_t *__restrict __argz_len, __const char *__restrict __str) __THROW
error_t __argz_add_sep (char **__restrict __argz, size_t *__restrict __argz_len, __const char *__restrict __string, int __delim) __THROW
error_t argz_add_sep (char **__restrict __argz, size_t *__restrict __argz_len, __const char *__restrict __string, int __delim) __THROW
void __argz_delete (char **__restrict __argz, size_t *__restrict __argz_len, char *__restrict __entry) __THROW
void argz_delete (char **__restrict __argz, size_t *__restrict __argz_len, char *__restrict __entry) __THROW
error_t __argz_insert (char **__restrict __argz, size_t *__restrict __argz_len, char *__restrict __before, __const char *__restrict __entry) __THROW
error_t argz_insert (char **__restrict __argz, size_t *__restrict __argz_len, char *__restrict __before, __const char *__restrict __entry) __THROW
error_t __argz_replace (char **__restrict __argz, size_t *__restrict __argz_len, __const char *__restrict __str, __const char *__restrict __with, unsigned int *__restrict __replace_count)
error_t argz_replace (char **__restrict __argz, size_t *__restrict __argz_len, __const char *__restrict __str, __const char *__restrict __with, unsigned int *__restrict __replace_count)
char * __argz_next (__const char *__restrict __argz, size_t __argz_len, __const char *__restrict __entry) __THROW
char * argz_next (__const char *__restrict __argz, size_t __argz_len, __const char *__restrict __entry) __THROW

Define Documentation

#define __const   const

Definition at line 30 of file argz.h.

#define __need_error_t

Definition at line 25 of file argz.h.


Typedef Documentation

typedef int error_t

Definition at line 34 of file argz.h.


Function Documentation

error_t __argz_add ( char **__restrict  __argz,
size_t *__restrict  __argz_len,
__const char *__restrict  __str 
)

Here is the caller graph for this function:

error_t __argz_add_sep ( char **__restrict  __argz,
size_t *__restrict  __argz_len,
__const char *__restrict  __string,
int  __delim 
)
error_t __argz_append ( char **__restrict  __argz,
size_t *__restrict  __argz_len,
__const char *__restrict  __buf,
size_t  _buf_len 
)
size_t __argz_count ( __const char *  __argz,
size_t  __len 
)
__BEGIN_DECLS error_t __argz_create ( char *__const  __argv[],
char **__restrict  __argz,
size_t *__restrict  __len 
)
error_t __argz_create_sep ( __const char *__restrict  __string,
int  __sep,
char **__restrict  __argz,
size_t *__restrict  __len 
)
void __argz_delete ( char **__restrict  __argz,
size_t *__restrict  __argz_len,
char *__restrict  __entry 
)
void __argz_extract ( __const char *__restrict  __argz,
size_t  __len,
char **__restrict  __argv 
)
error_t __argz_insert ( char **__restrict  __argz,
size_t *__restrict  __argz_len,
char *__restrict  __before,
__const char *__restrict  __entry 
)
char* __argz_next ( __const char *__restrict  __argz,
size_t  __argz_len,
__const char *__restrict  __entry 
)
error_t __argz_replace ( char **__restrict  __argz,
size_t *__restrict  __argz_len,
__const char *__restrict  __str,
__const char *__restrict  __with,
unsigned int *__restrict  __replace_count 
)
void __argz_stringify ( char *  __argz,
size_t  __len,
int  __sep 
)

Definition at line 27 of file argz-stringify.c.

{
  if (len > 0)
    while (1)
      {
       size_t part_len = __strnlen (argz, len);
       argz += part_len;
       len -= part_len;
       if (len-- <= 1)             /* includes final '\0' we want to stop at */
         break;
       *argz++ = sep;
      }
}

Here is the call graph for this function:

error_t argz_add ( char **__restrict  __argz,
size_t *__restrict  __argz_len,
__const char *__restrict  __str 
)
error_t argz_add_sep ( char **__restrict  __argz,
size_t *__restrict  __argz_len,
__const char *__restrict  __string,
int  __delim 
)

Here is the caller graph for this function:

error_t argz_append ( char **__restrict  __argz,
size_t *__restrict  __argz_len,
__const char *__restrict  __buf,
size_t  __buf_len 
)
size_t argz_count ( __const char *  __argz,
size_t  __len 
)
error_t argz_create ( char *__const  __argv[],
char **__restrict  __argz,
size_t *__restrict  __len 
)
error_t argz_create_sep ( __const char *__restrict  __string,
int  __sep,
char **__restrict  __argz,
size_t *__restrict  __len 
)

Here is the caller graph for this function:

void argz_delete ( char **__restrict  __argz,
size_t *__restrict  __argz_len,
char *__restrict  __entry 
)
void argz_extract ( __const char *__restrict  __argz,
size_t  __len,
char **__restrict  __argv 
)
error_t argz_insert ( char **__restrict  __argz,
size_t *__restrict  __argz_len,
char *__restrict  __before,
__const char *__restrict  __entry 
)
char* argz_next ( __const char *__restrict  __argz,
size_t  __argz_len,
__const char *__restrict  __entry 
)

Here is the caller graph for this function:

error_t argz_replace ( char **__restrict  __argz,
size_t *__restrict  __argz_len,
__const char *__restrict  __str,
__const char *__restrict  __with,
unsigned int *__restrict  __replace_count 
)
void argz_stringify ( char *  __argz,
size_t  __len,
int  __sep 
)