diff buf_sub.3 @ 21:939fe74cd80a

buf: switch to int from bool
author David Demelier <markand@malikania.fr>
date Wed, 24 Feb 2021 11:39:26 +0100
parents b1991ee4451d
children d87e84936795
line wrap: on
line diff
--- a/buf_sub.3	Wed Dec 16 16:20:53 2020 +0100
+++ b/buf_sub.3	Wed Feb 24 11:39:26 2021 +0100
@@ -25,7 +25,7 @@
 .\" SYNOPSIS
 .Sh SYNOPSIS
 .In buf.h
-.Ft bool
+.Ft int
 .Fn buf_sub "struct buf *b" "const struct buf *src" "size_t pos" "size_t count"
 .\" DESCRIPTION
 .Sh DESCRIPTION
@@ -56,7 +56,7 @@
 .Sh RETURN VALUE
 The
 .Fn buf_sub
-function returns false in case of error and
+function returns -1 in case of error and
 .Va errno
 is set to indicate the error.
 .\" ERRORS