aboutsummaryrefslogtreecommitdiffstats
path: root/man3/libsimple_memscan.3
diff options
context:
space:
mode:
authorMattias Andrée <maandree@kth.se>2018-11-17 11:13:47 +0100
committerMattias Andrée <maandree@kth.se>2018-11-17 11:13:47 +0100
commit58818a2b5d3042426d57846627b476b5f74591b8 (patch)
treefb8105e0c9bb9cd34d329835f9097a5cabcea699 /man3/libsimple_memscan.3
parentAdd memscan and memcasescan (diff)
downloadlibsimple-58818a2b5d3042426d57846627b476b5f74591b8.tar.gz
libsimple-58818a2b5d3042426d57846627b476b5f74591b8.tar.bz2
libsimple-58818a2b5d3042426d57846627b476b5f74591b8.tar.xz
Add memelemscan
Signed-off-by: Mattias Andrée <maandree@kth.se>
Diffstat (limited to '')
-rw-r--r--man3/libsimple_memscan.34
1 files changed, 3 insertions, 1 deletions
diff --git a/man3/libsimple_memscan.3 b/man3/libsimple_memscan.3
index c9db7da..0c5d14a 100644
--- a/man3/libsimple_memscan.3
+++ b/man3/libsimple_memscan.3
@@ -25,6 +25,8 @@ for the first occurence of the byte
.I c
(it is converted to a
.BR char ).
+If no such character exist in the memory
+segment, the memory segment's end is returned.
.PP
The comparison is case-sensitive.
.SH RETURN VALUE
@@ -38,7 +40,7 @@ where
.I r
is the returned pointer.
If no such offset exists,
-.B NULL
+.I &r[n]
is returned.
.SH ERRORS
The