Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!uunet!comp.vuw.ac.nz!actrix!templar!jbickers From: jbickers@templar.actrix.gen.nz (John Bickers) Newsgroups: comp.sys.amiga.programmer Subject: Re: Dumb windows from SAS/C programs on Workbench Message-ID: <3770.tnews@templar.actrix.gen.nz> Date: 16 May 91 07:35:45 GMT References: <1991May14.164909.19186@NCoast.ORG> Organization: TAP, NZAmigaUG. Lines: 31 Quoted from <1991May14.164909.19186@NCoast.ORG> by davewt@NCoast.ORG (David Wright): > I am using the "tinymain" option, in both my SASCOPTS file, and > in the Blink ".lnk" file, and do not make any use of printf/fprintf, and The line should look like: DEFINE __main=__tinymain > On a related note, what do you have to do to kill the CTRL-C trapping > their startup code puts in by default. I have my own trapper which worked The ^C trapping appears to be in the prelude to various C library functions. Particularly the IO ones (fread, etc). The solution is not to use those functions. The other solution is to find out what name these functions are calling and write your own do-nothing function with the same name. Your routine will be used instead of the library routine, and you'll be set. > a chance to see them, and is dumping my programs without giving me a chance to > clean up, close files, etc. If you're using the C library functions, they'll clean up automatically when you exit(). This applies to the fopen() file facilities and the malloc() memory management. > Dave -- *** John Bickers, TAP, NZAmigaUG. jbickers@templar.actrix.gen.nz *** *** "Endless variations, make it all seem new" - Devo. ***