diff options
author | Claudio Fontana <sick_soul@users.sourceforge.net> | 2006-03-05 10:15:22 +0000 |
---|---|---|
committer | Claudio Fontana <sick_soul@users.sourceforge.net> | 2006-03-05 10:15:22 +0000 |
commit | 8a529b8bb4c9501cdde16c8d78832206b9173a08 (patch) | |
tree | e72ff5e14b8ce416b9ee595ecf2b270137130194 /src/lid.c | |
parent | c08caff64c2bea51dce487a9817b31fc1114df53 (diff) | |
download | idutils-8a529b8bb4c9501cdde16c8d78832206b9173a08.tar.gz idutils-8a529b8bb4c9501cdde16c8d78832206b9173a08.tar.bz2 idutils-8a529b8bb4c9501cdde16c8d78832206b9173a08.zip |
* add bug report string to the help output
* src/lid.c: fix bug in pattern recognition in is_number()
Diffstat (limited to 'src/lid.c')
-rw-r--r-- | src/lid.c | 10 |
1 files changed, 7 insertions, 3 deletions
@@ -284,6 +284,7 @@ matched identifier followed by the list of file names in which it occurs.\n\ --version output version information and exit\n\ "), (separator_style == ss_braces ? _("braces") : _("space"))); + printf (_("\nReport bugs to " PACKAGE_BUGREPORT "\n\n")); exit (0); } @@ -1369,9 +1370,12 @@ is_number (char const *str) str += 2; str += strspn (str, "0123456789aAbBcCdDeEfF"); } - else - str += strspn (str, "0123456789"); - str += strspn (str, "uUlL"); + else { + size_t offn; + str += (offn = strspn (str, "0123456789")); + if (offn) + str += strspn (str, "uUlL"); + } return (*str == '\0'); } |