|
DataMuseum.dkPresents historical artifacts from the history of: DKUUG/EUUG Conference tapes |
This is an automatic "excavation" of a thematic subset of
See our Wiki for more about DKUUG/EUUG Conference tapes Excavated with: AutoArchaeologist - Free & Open Source Software. |
top - metrics - downloadIndex: T e
Length: 929 (0x3a1) Types: TextFile Names: »efopen.3s«
└─⟦a0efdde77⟧ Bits:30001252 EUUGD11 Tape, 1987 Spring Conference Helsinki └─⟦this⟧ »EUUGD11/euug-87hel/sec1/mkprog/efopen.3s«
.TH EFOPEN 3S "11 May 1986" .SH NAME efopen \- open a stream, exiting with message in case of failure .SH SYNOPSIS .B #include <stdio.h> .br .B extern char *progname; .PP .SM .B FILE .B *efopen(filename, type) .br .B char *filename, *type; .SH DESCRIPTION .I Efopen calls .IR fopen (3S) to open the file named by .IR filename , and if successful returns a pointer to be used to identify the stream in subsequent operations. .PP If .I filename is the string \- .I efopen will return .IR stdin . .PP .I Type is a character string as in .IR fopen (3S). .PP On failure, .I efopen exits, after printing out the name of the program (if a value has been given to .B progname by main), the name of the file, and calling .IR perror (3). .SH "SEE ALSO" fopen(3S), open(2), fclose(3), perror(3) .SH "AUTHOR" Modified by Mohamed el Lozy from program given in .I "The UNIX Programming Environment" by Brian W. Kernighan and Rob Pike, p 182.