---
name: "filter_create_fp"
section: "3"
platform: "linux"
package: "clearsilver-dev"
version: "0.10.5-6+b1"
release: "Debian 13 (Trixie)"
platforms: ["linux"]
url: "https://new.carta.tech/filter_create_fp"
---

# filter\_create\_fp(3)

similar to filter\_create\_fd except with buffered FILE\*

## NAME

filter\_create\_fp  - similar to filter\_create\_fd except with buffered FILE\*

## SYNOPSIS

```
#include <util/filter.h>
```

```
NEOERR *filter_create_fp(const char *cmd, FILE **in, FILE **out, FILE **err,
                         pid_t *pid);
```

## ARGUMENTS

cmd -\> the sub command to execute.  Will be executed with\
 /bin/sh -c\
 in -\> pointer to return the stdin pipe, or NULL if you don't\
 want the stdin pipe\
 out -\> pointer to return the stdout pipe, or NULL if you don't\
 want the stdout pipe\
 err -\> pointer to return the stderr pipe, or NULL if you don't\
 want the stderr pipe

## DESCRIPTION

filter\_create\_fp is identical to filter\_create\_fd, except each of the pipes is wrapped in a buffered stdio FILE

## RETURN VALUE

in -\> the stdin FILE of the sub process\
 out -\> the stdout FILE of the sub process\
 err -\> the stderr FILE of the sub process\
 pid -\> the pid of the sub process

## SEE ALSO

[**filter\_wait**(3)](/filter_wait/3.md), [**filter\_create\_fp**(3)](/filter_create_fp/3.md), **filter\_create\_fd**
