diff src/strftime.c @ 20212:90f407354bdf

automatically generated from GPLed version
author Ulrich Drepper <drepper@redhat.com>
date Thu, 06 Nov 1997 00:44:44 +0000
parents f722b33c682d
children cb1aec706f64
line wrap: on
line diff
--- a/src/strftime.c	Tue Nov 04 03:28:47 1997 +0000
+++ b/src/strftime.c	Thu Nov 06 00:44:44 1997 +0000
@@ -91,6 +91,14 @@
 # endif
 #endif
 
+#ifdef _LIBC
+# define MEMPCPY(d, s, n) __mempcpy (d, s, n)
+#else
+# ifndef HAVE_MEMPCPY
+#  define MEMPCPY(d, s, n) ((void *) ((char *) memcpy (d, s, n) + (n)))
+# endif
+#endif
+
 #ifndef __P
 # if defined (__GNUC__) || (defined (__STDC__) && __STDC__)
 #  define __P(args) args
@@ -196,8 +204,7 @@
     do									      \
       {									      \
 	int _this = _len > 16 ? 16 : _len;				      \
-	memcpy ((P), spaces, _this);					      \
-	(P) += _this;							      \
+	(P) = mempcpy ((P), spaces, _this);				      \
 	_len -= _this;							      \
       }									      \
     while (_len > 0);							      \
@@ -210,8 +217,7 @@
     do									      \
       {									      \
 	int _this = _len > 16 ? 16 : _len;				      \
-	memcpy ((P), zeroes, _this);					      \
-	(P) += _this;							      \
+	(P) = mempcpy ((P), zeroes, _this);				      \
 	_len -= _this;							      \
       }									      \
     while (_len > 0);							      \