Drew Parsons a écrit :
Attached is a minimal test case showing the problem. Compile with "gcc -o minargp minargp.c", run with somthing like "./minargp -r 15"to get argument value for -r = (null) repeat count has been set to 10 Expected behaviour: argument value for -r = 15 repeat count has been set to 15 Why is the argument value empty?
Using "./minargp -r15" is working, but the documentation explicitly states that a space is allowed between the argument and the value. So it looks like a bug in the glibc. I will try to have a look when I find time.
-- .''`. Aurelien Jarno | GPG: 1024D/F1BCDB73 : :' : Debian developer | Electrical Engineer `. `' aurel32@debian.org | aurelien@aurel32.net `- people.debian.org/~aurel32 | www.aurel32.net