Ne.app NeANT
The Ne.app NeANT User module of the NeANT distribution.
memchk.h
Go to the documentation of this file.
1
29#ifndef RWSTD_MEMCHK_H_INCLUDED
30#define RWSTD_MEMCHK_H_INCLUDED
31
32#include <cstddef>
33
34// checks if the first argument points to a readable region of memory
35// of the given size; returns the size on success, -1 otherwise
36std::size_t memchk (const void*, std::size_t);
37
38// checks of the argument points to a valid NUL-terminated character
39// string; returns the length of the string on success, -1 otherwise
40std::size_t strchk (const char*);
41
42#endif // RWSTD_MEMCHK_H_INCLUDED
std::size_t memchk(const void *, std::size_t)
std::size_t strchk(const char *)
Definition memchk.cpp:232