.TH ppd_file_new_from_filep 3 "14 July 2000" "Linux Programmer's Manual" .SH NAME ppd_file_new_from_filep, ppd_file_new_from_fd, ppd_file_new \- Parse a ppd file and load it into the ppd_file_t structure. .SH SYNOPSIS .nf .B #include .sp .BI "ppd_file_t *ppd_file_new_from_filep(FILE* " fp" );" .sp .BI "ppd_file_t *ppd_file_new_from_fd(int " fd" );" .sp .BI "ppd_file_t *ppd_file_new(const char * " filename" );" .SH DESCRIPTION The .B ppd_file_new_from_filep function parses the specified PPD file. .SH "RETURN VALUES" Upon successful completion .BR ppd_file_new_from_filep , .B ppd_file_new_from_fd , .B ppd_file_new return a .B ppd_file_t pointer. Otherwise, .B NULL is returned and .B errno is set. .TP .B ENODEV the FILE pointer passed into ppd_file_new_from_filep or the file descriptor passed into ppd_file_new_from_fd is NULL. .TP .B EBADF the file doesn't appear to be a PPD file. .TP .B ENOTTY no idea what these errors are. Probably PPD parse errors. .TP Other errors can be returned in errno by a failure in fdopen or fopen. .SH "SEE ALSO" .BR ppd_file_free "(3), " ppd_emit_to_file "(3)"