---
name: "gfs_glob_init"
section: "3"
platform: "linux"
package: "libgfarm-dev"
version: "2.4.1-1.1"
release: "Debian 7 (Wheezy)"
platforms: ["linux"]
url: "https://new.carta.tech/gfs_glob_init"
---

# gfs\_glob\_init(3)

allocates memory for types of path names

## NAME

gfs\_glob\_init - allocates memory for types of path names

## SYNOPSIS

**#include \<gfarm/gfarm.h\>**

**char \*gfs\_glob\_init (gfs\_glob\_t \*** *listp***);**

## DESCRIPTION

**gfs\_glob\_init()** allocates memory space for **[gfs\_glob(3)](/gfs_glob/3.md)** and **[gfs\_glob\_add(3)](/gfs_glob_add/3.md)**.  The memory space is stored to *listp*.

## RETURN VALUES

- **NULL**

  The function terminated successfully.

- **GFARM\_ERR\_NO\_MEMORY**

  Insufficient memory was available.

- **Others**

  An error except the above occurred.  The reason is shown by its pointed strings.

## SEE ALSO

[**gfs\_glob**(3)](/gfs_glob/3.md) [**gfs\_glob\_add**(3)](/gfs_glob_add/3.md) [**gfs\_glob\_free**(3)](/gfs_glob_free/3.md)
