From e8f32d09348b2e7504d3c33c97f3c854f3f75dec Mon Sep 17 00:00:00 2001 From: Mattias Andrée Date: Wed, 19 Aug 2015 14:04:36 +0200 Subject: add strict_atoj and strict_atouj MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Mattias Andrée --- doc/info/mds.texinfo | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) (limited to 'doc/info') diff --git a/doc/info/mds.texinfo b/doc/info/mds.texinfo index 8d44bdb..7835753 100644 --- a/doc/info/mds.texinfo +++ b/doc/info/mds.texinfo @@ -6535,6 +6535,30 @@ string is not a 10-radix integer or has a value outside [@code{min}, @code{max}], @code{-1} is returned, otherwise zero is returned. +@item @code{strict_atoj} [(@code{const char* str, intmax_t* value, intmax_t min, intmax_t max}) @arrow{} @code{int}] +@fnindex @code{strict_atoj} +@fnindex @code{atoj} +@cpindex Integer parsing +@cpindex Error management +A version of @code{atoj} that is strict about the +syntax and bounds. Parses the string @code{str} into +an @code{int} and stores it in @code{*value}. If the +string is not a 10-radix integer or has a value +outside [@code{min}, @code{max}], @code{-1} is +returned, otherwise zero is returned. + +@item @code{strict_atouj} [(@code{const char* str, uintmax_t* value, uintmax_t min, uintmax_t max}) @arrow{} @code{int}] +@fnindex @code{strict_atouj} +@fnindex @code{atouj} +@cpindex Integer parsing +@cpindex Error management +A version of @code{atouj} that is strict about the +syntax and bounds. Parses the string @code{str} into +an @code{int} and stores it in @code{*value}. If the +string is not a 10-radix integer or has a value +outside [@code{min}, @code{max}], @code{-1} is +returned, otherwise zero is returned. + @item @code{full_write} [(@code{int fd, const char* buffer, size_t length}) @arrow{} @code{int}] @fnindex @code{full_write} @cpindex File writing -- cgit v1.2.3-70-g09d2