Skip to content
Snippets Groups Projects
Commit db060d87 authored by Kurt Zeilenga's avatar Kurt Zeilenga
Browse files

Add AC_MEMCPY and AC_FAST_MEMCPY macros to eventually replace

SAFEMEMCPY.  AC_FAST_MEMCPY has a len==1 optimization for use
in -llber.
parent a720b9a4
Branches
Tags
No related merge requests found
......@@ -75,4 +75,10 @@ int (strncasecmp)();
# endif
#endif
#define AC_MEMCPY( d, s, n ) (SAFEMEMCPY((d),(s),(n)))
#define AC_FMEMCPY( d, s, n ) do { \
if((n) == 1) *((char*)(d)) = *((char*)(s)); \
else AC_MEMCPY( (d), (s), (n) ); \
} while(0)
#endif /* _AC_STRING_H */
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment