---
name: "cgiGetFiles"
section: "3"
platform: "linux"
package: "cgilib"
version: "0.6-1.1+b1"
release: "Debian 11 (Bullseye)"
platforms: ["linux"]
url: "https://new.carta.tech/cgiGetFiles"
---

# cgiGetFiles(3)

Returns a list of CGI file variables

## NAME

cgiGetFiles - Returns a list of CGI file variables

## SYNOPSYS

```
#include <cgi.h>

char **cgiGetFiles (s_cgi *parms);
```

## DESCRIPTION

This routine returns a NULL terminated array of names of CGI file variables that are available.  Details are provided with the [**cgiGetFile**(3)](/cgiGetFile/3.md) function. To free the memory allocated for the array use [**cgiFreeList**(3)](/cgiFreeList/3.md).

## RETURN VALUE

On success a NULL terminated array of strings is returned.  The last element is set to NULL.  If an error occurred or if no files variables are available NULL is returned.

## AUTHOR

This CGI library is written by Martin Schulze \<joey@infodrom.org\>.  If you have additions or improvements please get in touch with him.

## SEE ALSO

[**cgiGetFile**(3)](/cgiGetFile/3.md), [**cgiGetCookies**(3)](/cgiGetCookies/3.md), [**cgiGetVariables**(3)](/cgiGetVariables/3.md), [**cgiFreeList**(3)](/cgiFreeList/3.md), [**cgiDebug**(3)](/cgiDebug/3.md), [**cgiInit**(3)](/cgiInit/3.md).
