🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.sys.amiga.tech
Article #10750

lattice 4.01 bug ? or am I confused....

#10750
From: Fred Walter
Date: Fri, 30 Dec 1988 17:24
33 lines
1215 bytes
I attempted to open a RAW window for i/o using Lattice's fopen function. I
can read from the window, but for some reason I can't write to the window.
Below is a code fragment that displays the problem. I eventually worked
around the problem by using AmigaDOS Open/Read/Write commands, but I would
prefer to use the buffered stdio commands if I can.

Oh ya, if anybody wants it, I now have a version of STEVIE that you can RUN
(as well as a few minor bug fixes). I'll post an updated version later
(once I've added a few things, like :g, :d and maybe even :s).

	fred

---------------------
#include <stdio.h>

void
main()
{
	FILE *raw_io;
	int   c;

	raw_io = fopen("RAW:0/0/320/200/STEVIE", "w+");

	c = 0;
	while (c != 'q') {
		c = fgetc(raw_io);
		fprintf(raw_io, "%x ", c);
		fflush(raw_io);
		fprintf(stdout, "%x ", c);
		fflush(stdout);
	}
	fclose(raw_io);
}
Technical Details
Message-ID: <7489@watcgl.waterloo.edu>
Path: arc1-ca.pugleaf.net!utzoo!utgpu!watmath!watcgl!grwalter

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!utgpu!watmath!watcgl!grwalter
From: grwalter@watcgl.waterloo.edu (Fred Walter)
Newsgroups: comp.sys.amiga.tech
Subject: lattice 4.01 bug ? or am I confused....
Message-ID: <7489@watcgl.waterloo.edu>
Date: 30 Dec 88 17:24:28 GMT
Distribution: comp
Organization: U of Waterloo, Ontario
Lines: 33