void context_read(void);
void context_replace(char *, char *);
void context_save(void);
-char *copy(char *, char *);
char **copyip(char **, char **, int);
void cpydata(int, int, char *, char *);
void cpydgst(int, int, char *, char *);
SRCS = addrsbr.c ambigsw.c atooi.c brkstring.c \
check_charset.c closefds.c concat.c context_del.c \
context_find.c context_foil.c context_read.c \
- context_replace.c context_save.c copy.c \
+ context_replace.c context_save.c \
copyip.c cpydata.c cpydgst.c crawl_folders.c \
discard.c done.c dtime.c dtimep.c \
error.c ext_hook.c fdcompare.c folder_addmsg.c folder_delmsgs.c \
#include <h/utils.h>
+static char *
+copy(char *from, char *to)
+{
+ while ((*to = *from)) {
+ to++;
+ from++;
+ }
+ return (to);
+}
+
+
char *
concat(char *s1, ...)
{
+++ /dev/null
-/*
-** copy.c -- copy a string and return pointer to null byte terminator
-**
-** This code is Copyright (c) 2002, by the authors of nmh. See the
-** COPYRIGHT file in the root directory of the nmh distribution for
-** complete copyright information.
-*/
-
-#include <h/mh.h>
-
-char *
-copy(char *from, char *to)
-{
- while ((*to = *from)) {
- to++;
- from++;
- }
- return (to);
-}
interactive = defolder;
if (strchr(folder, '/') && (*folder != '/') && (*folder != '.')) {
- for (cp = copy(folder, newfolder);
- cp > newfolder && *cp != '/'; cp--)
- continue;
+ strcpy(newfolder, folder);
+ cp = newfolder + strlen(newfolder);
+ while (cp > newfolder && *cp != '/')
+ cp--;
if (cp > newfolder)
*cp = '\0';
else