Leaked source code of windows server 2003
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
|
/*
* MemCopy() * * A much safer version of memcpy that checks the value of the byte * count before calling the memcpy() function. This macro is only built * into the 16 bit non-debug builds. */
#ifndef __MEMCPY_H_
#define __MEMCPY_H_
#if defined(WIN16) && !defined(DEBUG)
#define MemCopy(_dst,_src,_cb) do \
{ \ size_t __cb = (size_t)(_cb); \ if (__cb) \ memcpy(_dst,_src,__cb); \ } while (FALSE) #else
#define MemCopy(_dst,_src,_cb) memcpy(_dst,_src,(size_t)(_cb))
#endif
#endif
|