[augeas-devel] augeas: master - * src/internal.h: new macros MEMCMP and MEMMOVE

David Lutterkort lutter at fedoraproject.org
Fri Nov 13 19:26:40 UTC 2009


Gitweb:        http://git.fedorahosted.org/git/augeas.git?p=augeas.git;a=commitdiff;h=d71dcf482c9c71a6c2c21d113603b0a3e0bf40bf
Commit:        d71dcf482c9c71a6c2c21d113603b0a3e0bf40bf
Parent:        297c8c75c7b9907d20f19ac77abb839acf8e1f94
Author:        David Lutterkort <lutter at redhat.com>
AuthorDate:    Wed Oct 28 16:23:03 2009 +0100
Committer:     David Lutterkort <lutter at redhat.com>
CommitterDate: Thu Nov 12 16:25:16 2009 -0800

* src/internal.h: new macros MEMCMP and MEMMOVE

---
 src/internal.h |    4 ++++
 1 files changed, 4 insertions(+), 0 deletions(-)

diff --git a/src/internal.h b/src/internal.h
index fe5b716..732a31e 100644
--- a/src/internal.h
+++ b/src/internal.h
@@ -214,6 +214,10 @@ int pathjoin(char **path, int nseg, ...);
 
 #define MEMZERO(ptr, n) memset((ptr), 0, (n) * sizeof(*(ptr)));
 
+#define MEMCPY(dest, src, n) memcpy((dest), (src), (n) * sizeof(*(src)))
+
+#define MEMMOVE(dest, src, n) memmove((dest), (src), (n) * sizeof(*(src)))
+
 /**
  * TODO:
  *




More information about the augeas-devel mailing list