diff options
author | Haru <haru@dotalux.com> | 2014-02-08 02:19:41 +0100 |
---|---|---|
committer | Haru <haru@dotalux.com> | 2014-02-08 02:33:49 +0100 |
commit | 1cf7c1ec251d6899707b0eced3bc75da2e212557 (patch) | |
tree | 54008176b1b0fca8affc1e01b1fac7b98e67df95 /cache | |
parent | e7853fa6ed991fdd7bcb4b2c842761742ae3c912 (diff) | |
download | hercules-1cf7c1ec251d6899707b0eced3bc75da2e212557.tar.gz hercules-1cf7c1ec251d6899707b0eced3bc75da2e212557.tar.bz2 hercules-1cf7c1ec251d6899707b0eced3bc75da2e212557.tar.xz hercules-1cf7c1ec251d6899707b0eced3bc75da2e212557.zip |
Improvements on the script commands sscanf, axtoi. Added strtol.
- Added script command strtol (conforming to the ISO C90 function)
- Modified script command axtoi to internally use strtol instead of an
unnecessary own implementation.
- Fixed sscanf behavior to conform to the C specifications in case the
input string is empty. It now correctly returns -1, or 0 if the format
string is also empty. Fixes bugreport:8009, thanks to AnnieRuru -
http://hercules.ws/board/tracker/issue-8009-sscanf-should-return-1-if-the-string-field-is-an-empty-string/
Signed-off-by: Haru <haru@dotalux.com>
Diffstat (limited to 'cache')
0 files changed, 0 insertions, 0 deletions