---
name: "gfs_pio_ungetc"
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_pio_ungetc"
---

# gfs\_pio\_ungetc(3)

push a character back

## NAME

gfs\_pio\_ungetc - push a character back

## SYNOPSIS

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

**int gfs\_pio\_ungetc (GFS\_File** *gf***, int** *c***);**

## DESCRIPTION

**gfs\_pio\_ungetc()** pushes a character *c* back to the file *gf*.  **gfs\_pio\_ungetc()** is needed to follow *[gfs\_pio\_getc(3)](/gfs_pio_getc/3.md)*.

## RETURN VALUES

- **EOF**

  **gfs\_pio\_ungetc()** does not follow **[gfs\_pio\_getc(3)](/gfs_pio_getc/3.md)**.

- **Others**

  The function terminated successfully.

## SEE ALSO

[**gfs\_pio\_create**(3)](/gfs_pio_create/3.md), [**gfs\_pio\_error**(3)](/gfs_pio_error/3.md), [**gfs\_pio\_getc**(3)](/gfs_pio_getc/3.md), [**gfs\_pio\_open**(3)](/gfs_pio_open/3.md)
