Fopen - HP B1476 68020 User Manual

Debugger/emulator
Table of Contents

Advertisement

fopen

Function
Open a file and associate it with a user window
Synopsis
int fopen(vp_num, filename, mode)
int
vp_num;
char *filename;
char *mode;
Description
The macro fopen() opens a file and associates it with a user-defined window.
This macro is equivalent to the File User_Fopen debugger command. filename
is the name of the file to be opened. mode is a string that specifies the mode in
which the file is opened. Valid modes are:
"r"
Open file for reading only
"w"
Open file for reading and/or writing (existing file contents
are erased)
"a"
Open file for appending
Diagnostics
If successful, a window number is returned. The error code -27 indicates that
the window is already open or that the window number is out of range. The
error code -101 is returned for other errors; for example, if the file to be read
does not exist.
Chapter 15: Predefined Macros
fopen
567

Advertisement

Table of Contents
loading

This manual is also suitable for:

B1476 68030

Table of Contents