Back to index

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

Go to the source code of this file.

Functions

char * __argz_next (const char *argz, size_t argz_len, const char *entry)

Function Documentation

char* __argz_next ( const char *  argz,
size_t  argz_len,
const char *  entry 
)

Definition at line 25 of file argz-next.c.

{
  if (entry)
    {
      if (entry < argz + argz_len)
       entry = strchr (entry, '\0') + 1;

      return entry >= argz + argz_len ? NULL : (char *) entry;
    }
  else
    if (argz_len > 0)
      return (char *) argz;
    else
      return NULL;
}