ztring.c: A few important extension for <string.h>
|
Surrounded memory block used to detect unbounded string copies. More...
#include <iostream>
#include <climits>
#include <cstring>
Go to the source code of this file.
Classes | |
class | zchz |
Contains a memory block of 'SIZE' characters in between 3 memory blocks of that same 'zchz::SIZE'. More... | |
Macros | |
#define | zchz_h |
Avoid multiple inclusion. More... | |
Functions | |
int | rand (long &seed) |
Used 'seed' to generate the next random number. More... | |
ptrdiff_t | operator- (char *l, zchz &r) |
ptrdiff_t | operator- (zchz &l, char *r) |
char * | operator+ (zchz &l, int i) |
Surrounded memory block used to detect unbounded string copies.
This class is useful to check that no memory overruns occur in C programs. Even though this is a C++ class, it can be used to test C programs.
Definition in file zchz.h.
|
inline |