summaryrefslogtreecommitdiff
path: root/x2p/util.c
diff options
context:
space:
mode:
authorLarry Wall <lwall@jpl-devvax.jpl.nasa.gov>1990-10-15 23:07:21 +0000
committerLarry Wall <lwall@jpl-devvax.jpl.nasa.gov>1990-10-15 23:07:21 +0000
commit20188a906a3fc8fea4839293454a6ca32aa362cc (patch)
treeda27d1293961a12d429826df7a71ed100812a28e /x2p/util.c
parent395c379347344a50494d2458b3a5e38ebdeac851 (diff)
downloadperl-20188a906a3fc8fea4839293454a6ca32aa362cc.tar.gz
perl 3.0 patch #36 patch #29, continued
See patch #29.
Diffstat (limited to 'x2p/util.c')
-rw-r--r--x2p/util.c35
1 files changed, 4 insertions, 31 deletions
diff --git a/x2p/util.c b/x2p/util.c
index 27b08b0862..07f19a3715 100644
--- a/x2p/util.c
+++ b/x2p/util.c
@@ -1,4 +1,4 @@
-/* $Header: util.c,v 3.0 89/10/18 15:35:35 lwall Locked $
+/* $Header: util.c,v 3.0.1.1 90/10/16 11:34:06 lwall Locked $
*
* Copyright (c) 1989, Larry Wall
*
@@ -6,6 +6,9 @@
* as specified in the README file that comes with the perl 3.0 kit.
*
* $Log: util.c,v $
+ * Revision 3.0.1.1 90/10/16 11:34:06 lwall
+ * patch29: removed #ifdef undef
+ *
* Revision 3.0 89/10/18 15:35:35 lwall
* 3.0 baseline
*
@@ -103,36 +106,6 @@ register int len;
return to;
}
-#ifdef undef
-/* safe version of string concatenate, with \n deletion and space padding */
-
-char *
-safecat(to,from,len)
-char *to;
-register char *from;
-register int len;
-{
- register char *dest = to;
-
- len--; /* leave room for null */
- if (*dest) {
- while (len && *dest++) len--;
- if (len) {
- len--;
- *(dest-1) = ' ';
- }
- }
- if (from != Nullch)
- while (len && (*dest++ = *from++)) len--;
- if (len)
- dest--;
- if (*(dest-1) == '\n')
- dest--;
- *dest = '\0';
- return to;
-}
-#endif
-
/* copy a string up to some (non-backslashed) delimiter, if any */
char *