Article View: comp.sys.atari.st
Article #3014Sozobon C questions
From: Steve Yelvington
Date: Wed, 09 Aug 1989 06:13
Date: Wed, 09 Aug 1989 06:13
40 lines
2054 bytes
2054 bytes
jjl@psuecl.bitnet writes...
> I have been trying to get my Sozobon C compiler to work for a while
>now but to no good end. Whenever I try to compile a program and type something
>as basic as cc nlp.c, it comes back with unknown file suffix "nlp.c" , why
>is it taking the whole file as the file suffix, any ideas?
The Sozobon cc.ttp program assumes that you use a command shell that can
pass arguments unmangled. The behavior you describe suggests that your
command shell is upcasing the tail (arguments). That's trouble -- cc is
case-sensitive, and jas may be as well. You can NOT run cc from the
Desktop.
(In a separate article, jjl@psuecl.bitnet writes...)
> Would anyone be kind enough to give me a little help with C here.
>I am using MJC and Sozobon C and have just used them for very primitive
>things... what I would like to know is if there are any calls so that I
>can reposition the cursor to any x,y coordiante on the screen.... and also
>if there is a way to plot individual poixels on the screen from a call.
To position the text cursor (not the mouse pointer!) you can use the
VT52 escape code:
<esc>Y<row><column>
as in:
printf("\033Y%d%d", row, column)
Plotting individual pixels is another matter entirely. You can use the
Line A graphics routines (in assembler), but there is almost no publicly
available documentation on Line A. Your best bet probably is to use the
VDI output function v_pline(handle, count, pxyarray) and plot a line with
only one point.
-- Steve Yelvington, up at the lake in Minnesota
... pwcs.stpaul.gov!stag!thelake!steve
Technical Details
Message-ID:
<1989Aug9.061337.13648@stag.UUCP>Path:
arc1-ca.pugleaf.net!utzoo!utgpu!watmath!att!dptg!rutgers!cs.utexas.edu!csd4.milw.wisc.edu!srcsip!nic.MR.NET!umn-cs!nis!pwcs!stag!daemonShow Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!utgpu!watmath!att!dptg!rutgers!cs.utexas.edu!csd4.milw.wisc.edu!srcsip!nic.MR.NET!umn-cs!nis!pwcs!stag!daemon From: stag!thelake!steve@bungia.mn.org (Steve Yelvington) Newsgroups: comp.sys.atari.st Subject: Sozobon C questions Message-ID: <1989Aug9.061337.13648@stag.UUCP> Date: 9 Aug 89 06:13:37 GMT Sender: daemon@stag.UUCP (The devil himself) Organization: Mindtools ST Access Group Lines: 40