text stringlengths 0 99.6k |
|---|
BASIC CLOSE command. open returns zero |
if the file can't be checked after |
opening a write file |
The file number argument may be used |
any place a stream (ie. a value |
returned by fopen) is used. File |
numbers 1 through 4 are reserved for |
system use. if open and fopen are used |
at the same time file numbers passed |
to open should be limited to the range |
5 through 9 |
-------------------------------------- |
opendir, readdir, rewinddir closedir |
- directory functions |
#include <dir.h> |
opendir(unit:) |
struct direct *readdir() |
rewinddir() |
closedir() |
Opendir opens a disk directory for |
reading. the unit from which the |
directory is to be read may be |
specified. if the directory can't be |
opened NULL is returned. NOTE: the |
directory functions do not apply to |
the RAMDISK. |
Readdir reads the next directory entry |
and returns a pointer to it. if there |
are no more entries NULL is rteturned. |
see the header file dir.h and the |
VIC-1541 User's Manual for the format |
of a directory entry |
Rewinddir causes readdir to read the |
first entry upon the next call |
Closedir closes the directory. |
-------------------------------------- |
(for Commodore 128) |
open2() - BASIC style open to unit# |
open2(name, filename, unit, channel) |
char *name; |
int filenum; |
char unit; |
int channel; |
open2() is the same as open(), except |
that the disk drive is specified by a |
unit number rather than a device |
number. if "filename" is not empty, |
then the unit number is taken from |
there, otherwise it is taken from |
"unit" |
-------------------------------------- |
(for Commodore 128) |
peek() - BASIC style peek() |
peek(bank, address); |
unsigned bank, address; |
peek() returns the contents of the |
memory location in "bank" at "address" |
-------------------------------------- |
(for Commodore 128) |
poke() - BASIC style poke |
poke(bank, address, value) |
unsigned bank, address, value; |
poke() puts the byte "value" into the |
memory locatin specified by "bank" and |
"address" |
-------------------------------------- |
printf, fprintf, sprintf |
- formatted output |
#include <stdio.h> |
printf(control [, arg] ...) |
char *control; |
fprintf(stream, control, [, arg] ...) |
FILE stream; |
char *control; |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.