diff options
author | rwatson <rwatson@FreeBSD.org> | 2002-02-18 00:37:03 +0000 |
---|---|---|
committer | rwatson <rwatson@FreeBSD.org> | 2002-02-18 00:37:03 +0000 |
commit | 49c65a6b10085c64f7ff4dfb8ccc792f1e9dbc75 (patch) | |
tree | ca54ff259a2aa28bbc146e5a0c0d691cd98ede9f /share/termcap | |
parent | 43f97fe4ae07b305a42ebbd3f668b9fdeecbaa5f (diff) | |
download | FreeBSD-src-49c65a6b10085c64f7ff4dfb8ccc792f1e9dbc75.zip FreeBSD-src-49c65a6b10085c64f7ff4dfb8ccc792f1e9dbc75.tar.gz |
Add a 'strvalid()' call to libkern. Given a character pointer, and
buffer length, determine if the pointer is to a valid string. Currently,
the only check is whether a '\0' appears in the buffer. This is useful
when pulling in a structure from userland that may contain one or more
strings, and validity testing must be performed on elements of the
structure. When copying normal string arguments, copyinstr() is
expected to be used.
Diffstat (limited to 'share/termcap')
0 files changed, 0 insertions, 0 deletions