Re: [9fans] First/second edition image manipulation tools

2008-06-12 Thread Charles Forsyth
ARGF must be called just once for each option that takes an argument. that means you cannot get the same argument (parameter value) twice, so you'd better save it if you need it.

Re: [9fans] First/second edition image manipulation tools

2008-06-12 Thread Russ Cox
According to arg(2), that's not a good idea. ARGF must be called just once for each option that takes an argument. Who are you going to believe? Me or that lying man page? See if your code works. I'm not your code monkey. You mentioned that you didn't know how to do something; I

[9fans] First/second edition image manipulation tools

2008-06-11 Thread Pietro Gagliardi
Hello. My next experiment in learning libraries, as well as my next project, is a reimplementation of the first and second edition raster graphics manipulation tools. These use libmemdraw, which provides Memimage. Since I only have a working first edition manual, the program I will

Re: [9fans] First/second edition image manipulation tools

2008-06-11 Thread Russ Cox
The first edition specified the arguments to -o as two values - this cannot be done due to idiosyncrasies with args(2). case 'o': arg1 = EARGF(usage()); arg2 = EARGF(usage()); break; russ

Re: [9fans] First/second edition image manipulation tools

2008-06-11 Thread Pietro Gagliardi
On Jun 11, 2008, at 11:46 PM, Russ Cox wrote: The first edition specified the arguments to -o as two values - this cannot be done due to idiosyncrasies with args(2). case 'o': arg1 = EARGF(usage()); arg2 = EARGF(usage()); break; russ According to