diff options
author | Mathew Kallada <matkallada@gmail.com> | 2012-12-19 09:51:38 -0500 |
---|---|---|
committer | Gedare Bloom <gedare@rtems.org> | 2012-12-19 09:51:38 -0500 |
commit | 148e3de629fff11c7598ff178cb125ae3f8b5d12 (patch) | |
tree | ac348c795f82037f1746e1ab237fd280ff3f2c1d /cpukit/libmisc/stringto/stringtounsignedint.c | |
parent | 9889d5172446acbc69b97fc74a44449c4d2b5351 (diff) |
libmisc: Doxygen Enhancement Task #2
http://www.google-melange.com/gci/task/view/google/gci2012/7959228
Diffstat (limited to 'cpukit/libmisc/stringto/stringtounsignedint.c')
-rw-r--r-- | cpukit/libmisc/stringto/stringtounsignedint.c | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/cpukit/libmisc/stringto/stringtounsignedint.c b/cpukit/libmisc/stringto/stringtounsignedint.c index b7a24be54d..53aaf10bf8 100644 --- a/cpukit/libmisc/stringto/stringtounsignedint.c +++ b/cpukit/libmisc/stringto/stringtounsignedint.c @@ -1,3 +1,10 @@ +/** + * @file + * + * @brief Convert String to Unsigned Int (with validation) + * @ingroup libmisc_conv_help Conversion Helpers + */ + /* * COPYRIGHT (c) 2009. * On-Line Applications Research Corporation (OAR). @@ -47,7 +54,7 @@ rtems_status_code rtems_string_to_unsigned_int ( if ( end == s ) return RTEMS_NOT_DEFINED; - if ( ( errno == ERANGE ) && + if ( ( errno == ERANGE ) && (( result == 0 ) || ( result == ULONG_MAX ))) return RTEMS_INVALID_NUMBER; |