comparison 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
comparison
equal deleted inserted replaced
20211:f722b33c682d 20212:90f407354bdf
86 # include <stdlib.h> 86 # include <stdlib.h>
87 # include <string.h> 87 # include <string.h>
88 #else 88 #else
89 # ifndef HAVE_MEMCPY 89 # ifndef HAVE_MEMCPY
90 # define memcpy(d, s, n) bcopy ((s), (d), (n)) 90 # define memcpy(d, s, n) bcopy ((s), (d), (n))
91 # endif
92 #endif
93
94 #ifdef _LIBC
95 # define MEMPCPY(d, s, n) __mempcpy (d, s, n)
96 #else
97 # ifndef HAVE_MEMPCPY
98 # define MEMPCPY(d, s, n) ((void *) ((char *) memcpy (d, s, n) + (n)))
91 # endif 99 # endif
92 #endif 100 #endif
93 101
94 #ifndef __P 102 #ifndef __P
95 # if defined (__GNUC__) || (defined (__STDC__) && __STDC__) 103 # if defined (__GNUC__) || (defined (__STDC__) && __STDC__)
194 int _len = (Len); \ 202 int _len = (Len); \
195 \ 203 \
196 do \ 204 do \
197 { \ 205 { \
198 int _this = _len > 16 ? 16 : _len; \ 206 int _this = _len > 16 ? 16 : _len; \
199 memcpy ((P), spaces, _this); \ 207 (P) = mempcpy ((P), spaces, _this); \
200 (P) += _this; \
201 _len -= _this; \ 208 _len -= _this; \
202 } \ 209 } \
203 while (_len > 0); \ 210 while (_len > 0); \
204 } while (0) 211 } while (0)
205 212
208 int _len = (Len); \ 215 int _len = (Len); \
209 \ 216 \
210 do \ 217 do \
211 { \ 218 { \
212 int _this = _len > 16 ? 16 : _len; \ 219 int _this = _len > 16 ? 16 : _len; \
213 memcpy ((P), zeroes, _this); \ 220 (P) = mempcpy ((P), zeroes, _this); \
214 (P) += _this; \
215 _len -= _this; \ 221 _len -= _this; \
216 } \ 222 } \
217 while (_len > 0); \ 223 while (_len > 0); \
218 } while (0) 224 } while (0)
219 #else 225 #else