12345678910111213141516171819202122232425262728293031323334353637383940414243 |
- #ifndef MEMINCR_SOURCE
- #define MEMINCR_SOURCE
- #include "../tools/memory.h"
- signed memincr (void * memory, register size_t extent)
- {
- register byte * offset = (byte *) (memory);
- while (extent--)
- {
- if (++ offset [extent] != 0x00)
- {
- return (0);
- }
- }
- return (- 1);
- }
- #endif
|