From 1a4696492e3cd478080e438950a7664a68fefcd6 Mon Sep 17 00:00:00 2001 From: axtloss Date: Sat, 13 Jul 2024 13:32:53 +0200 Subject: Add manpages for each extlib function --- doc/memvcmp.3 | 32 ++++++++++++++++++++++++++++++++ 1 file changed, 32 insertions(+) create mode 100644 doc/memvcmp.3 (limited to 'doc/memvcmp.3') diff --git a/doc/memvcmp.3 b/doc/memvcmp.3 new file mode 100644 index 0000000..952c0cf --- /dev/null +++ b/doc/memvcmp.3 @@ -0,0 +1,32 @@ +'\" t +.\" Copyright 2024 axtlos (axtlos@disroot.org) +.\" +.\" SPDX-License-Identifier: BSD-3-Clause + +.TH memvcmp 3 2024-07-14 "extlib" +.SH NAME +memvcmp \- compare a memory area to a value +.SH LIBRARY +extlib extended standard library +.RI ( libextlib ", " \-lextlib ) +.SH SYNOPSIS +.nf +.B #include +.P +.BI "int memvcmp (void *str, char val, size_t n);" +.fi +.SH DESCRIPTION +The +.BR memcvmp () +function compares +.I n +bytes of +.I *str +to the value +.I val +. +.fi +.SH RETURN VALUE +.BR memvcmp () +returns zero if the area matches, non-zero if it does not. +.\" SRC END -- cgit v1.2.3