Files
Fish (David B. Trout) a0b70fd4be Import/Export cleanup (final):
Finish moving misplaced DLL_IMPORT/DLL_EXPORT #defines from source files into impexp.h.
2018-03-08 13:27:40 -08:00

37 lines
1.4 KiB
C

/* MEMRCHR.H (C) Copyright Roger Bowler, 2006-2012 */
/* Hercules Right to Left memory scan */
/* */
/* Released under "The Q Public License Version 1" */
/* (http://www.hercules-390.org/herclic.html) as modifications to */
/* Hercules. */
/************************************************************************/
/* */
/* memrchr -- Right to Left memory scan */
/* */
/* Scans the memory block and reports the last occurrence of */
/* the specified byte in the buffer. Returns a pointer to */
/* the byte if found, or NULL if not found. */
/* */
/************************************************************************/
#ifndef MEMRCHR_H
#define MEMRCHR_H
#include "hercules.h"
#if !defined(HAVE_MEMRCHR) // (only if we need it)
#ifdef __cplusplus
extern "C" {
#endif /*__cplusplus*/
MEM_DLL_IMPORT void *memrchr(const void *buf, int c, size_t num);
#ifdef __cplusplus
}
#endif /*__cplusplus*/
#endif // !defined(HAVE_MEMRCHR)
#endif // MEMRCHR_H