---
name: "ixp_vprint"
section: "3"
platform: "linux"
package: "libixp-dev"
version: "0.6~20121202+hg148-5"
release: "Debian 11 (Bullseye)"
platforms: ["linux"]
url: "https://new.carta.tech/ixp_vprint"
---

# ixp\_vprint(3)

## NAME

ixp\_print, ixp\_vprint, ixp\_vsmprint

## SYNOPSIS

```
#include <ixp.h>
int ixp_print(IxpCFid *fid, const char *fmt, ...);
int ixp_vprint(IxpCFid *fid, const char *fmt, va_list args);
char*    (*ixp_vsmprint)(const char *fmt, va_list);
```

## PARAMETERS

- fid

  An open IxpCFid to which to write the result.

- fmt

  The string with which to format the data.

- args

  A va\_list holding the arguments to the format string.

- ...

  The arguments to the format string.

## DESCRIPTION

These functions act like the standard formatted IO functions. They write the result of the formatting to the file pointed to by C\<fid\>.

**[ixp\_vsmprint(3)](/ixp_vsmprint/3.md)** may be set to a function which will format its arguments and return a nul-terminated string allocated by [malloc(3)](/malloc/3.md). The default formats its arguments as [printf(3)](/printf/3.md).

## RETURN VALUE

These functions return the number of bytes written. There is currently no way to detect failure.

## SEE ALSO

[ixp\_mount(3)](/ixp_mount/3.md), [ixp\_open(3)](/ixp_open/3.md), [printf(3)](/printf/3.md)
