🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: net.micro.atari16
Article #871

RE: Megamax C & I/O Redirection

#871
From: m5
Date: Wed, 11 Jun 1986 23:50
31 lines
1303 bytes

I haven't been able to duplicate the alleged problems with I/O redirection
under Megamax C.  Specifically, the following program seems to work:

main(argc, argv)
int argc;
char *argv[];
{
	char string[64];

	scanf("%s", string);
	printf("%s\n", string);
}

I've tried this as a TTP application from the desktop and from microcsh.  It
seems to work with microcsh pipes as well.

Note that `argc' and `argv' MUST be declared.  If not, the compiler/linker
will use a dummy version of an internal routine called `argcv'.  The dummy
version doesn't do anything.  This is documented on page 1-7 of the Megamax
manual.

If anybody has a short program that demonstrates failure of I/O redirection
I'd be happy to look at it.

Mike McNally
Hanger About
Megamax Inc.

...convex!ctvax!m5
Technical Details
Message-ID: <3100004@megamax>
Path: arc1-ca.pugleaf.net!utzoo!watmath!clyde!cbosgd!ihnp4!inuxc!pur-ee!uiucdcs!convex!megamax!m5

Show Full Headers
Complete Article Headers
Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP
Path: arc1-ca.pugleaf.net!utzoo!watmath!clyde!cbosgd!ihnp4!inuxc!pur-ee!uiucdcs!convex!megamax!m5
From: m5@megamax
Newsgroups: net.micro.atari16
Subject: RE: Megamax C & I/O Redirection
Message-ID: <3100004@megamax>
Date: Wed, 11-Jun-86 19:50:00 EDT
Article-I.D.: megamax.3100004
Posted: Wed Jun 11 19:50:00 1986
Date-Received: Tue, 17-Jun-86 07:29:13 EDT
Lines: 31
Nf-ID: #N:megamax:3100004:000:778
Nf-From: megamax!m5    Jun 11 18:50:00 1986