Back to index

glibc  2.9
Functions
argz-delete.c File Reference
#include <argz.h>
#include <string.h>
#include <stdlib.h>

Go to the source code of this file.

Functions

void argz_delete (char **argz, size_t *argz_len, char *entry)

Function Documentation

void argz_delete ( char **  argz,
size_t argz_len,
char *  entry 
)

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

{
  if (entry)
    /* Get rid of the old value for NAME.  */
    {
      size_t entry_len = strlen (entry) + 1;
      *argz_len -= entry_len;
      memmove (entry, entry + entry_len, *argz_len - (entry - *argz));
      if (*argz_len == 0)
       {
         free (*argz);
         *argz = 0;
       }
    }
}

Here is the call graph for this function:

Here is the caller graph for this function: