From 3aa4f3a415a5a2b67db543f809f28668e1839371 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Henrik=20Grubbstr=C3=B6m=20=28Grubba=29?= <grubba@grubba.org> Date: Sat, 27 Feb 1999 22:25:43 +0100 Subject: [PATCH] Bugfix. Rev: src/pike_memory.c:1.31 --- src/pike_memory.c | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/src/pike_memory.c b/src/pike_memory.c index 87bea63820..6c13aec8e2 100644 --- a/src/pike_memory.c +++ b/src/pike_memory.c @@ -3,13 +3,14 @@ ||| Pike is distributed as GPL (General Public License) ||| See the files COPYING and DISCLAIMER for more information. \*/ +/**/ #include "global.h" #include "pike_memory.h" #include "error.h" #include "pike_macros.h" #include "gc.h" -RCSID("$Id: pike_memory.c,v 1.30 1999/02/23 11:18:36 marcus Exp $"); +RCSID("$Id: pike_memory.c,v 1.31 1999/02/27 21:25:43 grubba Exp $"); /* strdup() is used by several modules, so let's provide it */ #ifndef HAVE_STRDUP @@ -28,6 +29,12 @@ char *strdup(const char *str) } #endif /* !HAVE_STRDUP */ +int pcharp_memcmp(PCHARP a, PCHARP b, int sz) +{ + return generic_quick_binary_strcmp(a.str, sz, a.shift, + b.str, sz, b.shift); +} + INLINE p_wchar1 *MEMCHR1(p_wchar1 *p,p_wchar1 c,INT32 e) { e++; -- GitLab