mirror of
https://github.com/SDL-Hercules-390/hyperion.git
synced 2026-07-26 02:29:51 +02:00
a0b70fd4be
Finish moving misplaced DLL_IMPORT/DLL_EXPORT #defines from source files into impexp.h.
37 lines
1.4 KiB
C
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
|