aboutsummaryrefslogtreecommitdiffstats
path: root/doc/info
diff options
context:
space:
mode:
authorMattias Andrée <maandree@operamail.com>2015-08-19 14:04:36 +0200
committerMattias Andrée <maandree@operamail.com>2015-08-19 14:04:36 +0200
commite8f32d09348b2e7504d3c33c97f3c854f3f75dec (patch)
tree935d1dd1ae9eb550d5fe9d86989d06871672adb0 /doc/info
parentput full_send in libmdsserver, clients that only has one socket uses a macro to remove the socket parameter (diff)
downloadmds-e8f32d09348b2e7504d3c33c97f3c854f3f75dec.tar.gz
mds-e8f32d09348b2e7504d3c33c97f3c854f3f75dec.tar.bz2
mds-e8f32d09348b2e7504d3c33c97f3c854f3f75dec.tar.xz
add strict_atoj and strict_atouj
Signed-off-by: Mattias Andrée <maandree@operamail.com>
Diffstat (limited to 'doc/info')
-rw-r--r--doc/info/mds.texinfo24
1 files changed, 24 insertions, 0 deletions
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