Mail Archives: djgpp/1995/03/12/17:52:04
I use aztec C as a realmode compiler.
It uses:
=long command line
in the environment to get around the 128 byte limitation.
Many other applications use response files
(i.e. @name)
to indicate to pull the args out of
name
1) how can I set an environment variable "=some line"
(I tried it on linux, putenv worked (returned 0) but I couldn't find
it in there,
djgcc returns some large number...)
Here's the program:
ain(int argc, char **argv)
{
int result;
result = putenv("=this is a long string");
system("sh");
printf("result = %d\n");
}
How can I get go32 apps to write argc/argv into a response file?
(I can shove this into the environment...)
marty leisner AT sdsp DOT mc DOT xerox DOT com
Member of the League for Programming Freedom (http://www.lpf.org)
Any sufficiently advanced technology is indistinguishable from magic
Arthur C. Clarke, The Lost Worlds of 2001
- Raw text -