home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Frozen Fish 1: Amiga
/
FrozenFish-Apr94.iso
/
bbs
/
alib
/
d1xx
/
d101
/
startups.lha
/
StartUps
/
README
< prev
next >
Wrap
Text File
|
1987-09-05
|
1KB
|
40 lines
If you are linking your C programs with "Astartup.obj" this file is for
you! When working with Lattice C you have the option of using
LStartup.obj, which makes huge executables, or Astartup.obj which is tiny.
The problem with Astartup.obj is that it is buggy. This distribution
contains three replacements. As a bonus, these files add about half the
number of bytes to a program as compared to Astartup.obj.
* BothStartup.obj
*
* A drop in replacement for Astartup.obj
* For Workbench programs, or CLI programs with or without command
* line parameters.
* WBStartup.obj
*
* For Workbench programs, or CLI programs that require no command
* line parameters.
* CLIStartup.obj
*
* For CLI programs that require command line parameters.
* If started from Workbench, it tells the user to start it
* from the CLI.
All three follow the standard conventions for argc and argv. When started
from the CLI argc will be at least 1. argv[0] will contain the command
name, and argv[X] will contain that parameter.
When started from the Workbench, argc will be zero and argv will contain
the pointer to the Workbench message. (The old 2092 byte Astartup.obj
pushed these on the stack in the wrong order. It also forgot to close
the dos.library when started from the CLI)
Bryce Nesbitt
1712 Marin Ave
Berkeley, Ca 94707-2206
ucbvax!cogsci!bryce -or- bryce@cogsci.Berkeley.EDU