X-Git-Url: http://mj.ucw.cz/gitweb/?a=blobdiff_plain;f=ucw%2Fstrtonum-test.c;h=1bd8faf2cd350b1895776f540b13e34c024ab972;hb=244c4fe7e6cf5ae78cbe6343fe7f9b6dfc29b11a;hp=fd15714db9109ee86212c307f9f896b9b18c4439;hpb=2c7483b13f06f97b8a3d98f27ebe5ebf003be1c2;p=libucw.git diff --git a/ucw/strtonum-test.c b/ucw/strtonum-test.c index fd15714d..1bd8faf2 100644 --- a/ucw/strtonum-test.c +++ b/ucw/strtonum-test.c @@ -7,9 +7,9 @@ * of the GNU Lesser General Public License. */ -#include "ucw/lib.h" -#include "ucw/chartype.h" -#include "ucw/strtonum.h" +#include +#include +#include #include @@ -39,6 +39,9 @@ static uns str_to_flags(const char *str) case 'o': flags |= STN_OCT; break; + case 'O': + flags |= STN_OCT0; + break; case 'B': flags |= STN_BIN; break; @@ -61,8 +64,8 @@ static uns str_to_flags(const char *str) case 's': flags |= STN_SIGNED; break; - case 'Z': - flags |= STN_ZCHAR; + case 'W': + flags |= STN_WHOLE; break; } }