---
name: "mongoc_gridfs_file_list_next"
section: "3"
platform: "linux"
package: "libmongoc-doc"
version: "1.30.4-1+deb13u3"
release: "Debian 13 (Trixie)"
platforms: ["linux"]
url: "https://new.carta.tech/mongoc_gridfs_file_list_next"
---

# mongoc\_gridfs\_file\_list\_next(3)

## SYNOPSIS

```
mongoc_gridfs_file_t *
mongoc_gridfs_file_list_next (mongoc_gridfs_file_list_t *list);
```

## PARAMETERS

- •

  **list**: A *mongoc\_gridfs\_file\_list\_t*.

## DESCRIPTION

This function shall iterate the underlying gridfs file list, returning the next file each iteration. This is a blocking function.

## RETURNS

A newly allocated *mongoc\_gridfs\_file\_t* that should be freed with *mongoc\_gridfs\_file\_destroy()* when no longer in use.

## AUTHOR

MongoDB, Inc

## COPYRIGHT

2009-present, MongoDB, Inc.
