---
name: "PS_get_buffer"
section: "3"
platform: "linux"
package: "pslib-dev"
version: "0.4.8-1+b1"
release: "Debian 13 (Trixie)"
platforms: ["linux"]
url: "https://new.carta.tech/PS_get_buffer"
---

# PS\_get\_buffer(3)

Returns internal memory buffer

## NAME

PS\_get\_buffer — Returns internal memory buffer

## SYNOPSIS

\#include \<pslib.h\>

const char \*PS\_get\_buffer(PSDoc \*psdoc, long \*size)

## DESCRIPTION

Returns the current internal memory buffer when the document  is created in memory. The internal buffer will be set to a length of 0  when calling this function. You should output or save the return  buffer pointer before calling any other pslib functions. The parameter  **size** can be used to retrieve the number of  bytes in the buffer.

## RETURN VALUE

## SEE ALSO

[PS\_open\_file(3)](/PS_open_file/3.md)

## AUTHOR

This manual page was written by Uwe Steinmann uwe@steinmann.cx.
