Back to index

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

Go to the source code of this file.

Functions

size_t __argz_count (const char *argz, size_t len)

Function Documentation

size_t __argz_count ( const char *  argz,
size_t  len 
)

Definition at line 26 of file argz-count.c.

{
  size_t count = 0;
  while (len > 0)
    {
      size_t part_len = strlen(argz);
      argz += part_len + 1;
      len -= part_len + 1;
      count++;
    }
  return count;
}

Here is the call graph for this function: