HP 68000 Series User Manual page 488

Debugger/simulator
Table of Contents

Advertisement

Chapter 11: Predefined Macros
open
Example
The following command file segment defines two global debugger symbols and
includes the definition of a user-defined macro that uses open().
Symbol Add int infile
Symbol Add int outfile
Debugger Macro Add int open_files(infile, outfile)
char
char
{
}
466
*infile;
/* file to read from */
*outfile;
/* file to write to
/* open input file in read only mode */
infile = open(infile, 0);
if (infile == -1)
return 0;
/* open failed */
/* create output file in read/write mode */
outfile = open(outfile, 258);
if (outfile == -1)
return 0;
/* open failed */
return 1;
/* both files were opened successfully */
*/

Advertisement

Table of Contents
loading

This manual is also suitable for:

B1466

Table of Contents