---
name: "pack_fputs"
section: "3alleg"
platform: "linux"
package: "liballegro-doc"
version: "2:4.2.2-2.2"
release: "Debian 6.0 (Squeeze)"
platforms: ["linux"]
url: "https://new.carta.tech/pack_fputs"
---

# pack\_fputs(3alleg)

Writes a string to the stream. Allegro game programming library.

## NAME

pack\_fputs - Writes a string to the stream. Allegro game programming library.

## SYNOPSIS

**#include \<allegro.h\>**

**int pack\_fputs(const char \*p, PACKFILE \*f);**

## DESCRIPTION

Writes a string to the stream \`f'. The input string is converted from the current text encoding format to UTF-8 before writing. Newline characters are written as \`\\r\\n' on DOS and Windows platforms. If you don't want this behaviour, use pack\_fwrite() and/or pack\_putc() instead.

## RETURN VALUE

Returns zero on success or a negative number on error.

## SEE ALSO

[**pack\_fopen**(3alleg)](/pack_fopen/3alleg.md), [**pack\_fopen\_chunk**(3alleg)](/pack_fopen_chunk/3alleg.md), [**pack\_fwrite**(3alleg)](/pack_fwrite/3alleg.md), [**pack\_putc**(3alleg)](/pack_putc/3alleg.md)
