Martin Godisch wrote: > > > And changing it is simple. Something like this: > > > > > > if(*argv) *argv = "init"; > > This is what I wonder, whether it is portable. Modifying argv[0][x] in-place (especially making some strings longer than original) may need non-portable hacks, but argv[0] is just a pointer that can be portably modified. I have been writing that kind of pointer manipulating code for at least 16 years without trouble. -- Jari Ruusu 1024R/3A220F51 5B 4B F9 BB D3 3F 52 E9 DB 1D EB E3 24 0E A9 DD - Linux-crypto: cryptography in and on the Linux system Archive: http://mail.nl.linux.org/linux-crypto/