.TH "PS_OPEN_FILE" "3" .SH "NAME" PS_open_file \(em Opens a file for output .SH "SYNOPSIS" .PP #include .PP int PS_open_file(PSDoc *psdoc, const char *filename) .SH "DESCRIPTION" .PP Creates a new file on disk and writes the PostScript document into it. The file will be closed when PS_close(3) is called. If \fBfilename\fR is NULL, empty or `\-', then the file will be created in memory and retrieved with \fBPS_get_buffer(3)\fP. .SH "RETURN VALUE" .PP Returns \-1 in case of an error and 0 otherwise. .SH "SEE ALSO" .PP PS_open_fp(3), PS_open_mem(3), PS_close(3), PS_get_buffer(3) .SH "AUTHOR" .PP This manual page was written by Uwe Steinmann uwe@steinmann.cx. .\" created by instant / docbook-to-man