---
name: "pack_fputs"
section: "3alleg4"
platform: "linux"
package: "allegro4-doc"
version: "2:4.4.3.1-5"
release: "Debian 13 (Trixie)"
platforms: ["linux"]
url: "https://new.carta.tech/pack_fputs/3alleg4"
---

# pack\_fputs(3alleg4)

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**(3alleg4), **pack\_fopen\_chunk**(3alleg4), **pack\_fwrite**(3alleg4), **pack\_putc**(3alleg4)
