summaryrefslogtreecommitdiff
path: root/zwgc/formatter.c
diff options
context:
space:
mode:
authorGravatar Richard Basch <probe@mit.edu>1993-11-19 10:08:17 +0000
committerGravatar Richard Basch <probe@mit.edu>1993-11-19 10:08:17 +0000
commitcf8563c65ab72a4e20b061646c9bb4cad0f40184 (patch)
tree5456e7ba7ed1ada07468116ddaf750e220006ba4 /zwgc/formatter.c
parent508bac106c39250017c3b29c1fcb7d720d75ffd0 (diff)
Replace bcopy with memcpy/memmove [ANSI]
Diffstat (limited to 'zwgc/formatter.c')
-rw-r--r--zwgc/formatter.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/zwgc/formatter.c b/zwgc/formatter.c
index 08dc5a1..03ee3d0 100644
--- a/zwgc/formatter.c
+++ b/zwgc/formatter.c
@@ -249,7 +249,7 @@ string verbatim(str, bracketsonly)
temp=(char *) malloc((len=strlen(str))+4);
temp[0]='@';
temp[1]='<';
- _BCOPY(str,temp+2,len);
+ (void) memcpy(temp+2,str,len);
temp[len+2]='>';
temp[len+3]='\0';
free(str);
@@ -259,7 +259,7 @@ string verbatim(str, bracketsonly)
temp=(char *) malloc((len=strlen(str))+4);
temp[0]='@';
temp[1]='[';
- _BCOPY(str,temp+2,len);
+ (void) memcpy(temp+2,str,len);
temp[len+2]=']';
temp[len+3]='\0';
free(str);
@@ -269,7 +269,7 @@ string verbatim(str, bracketsonly)
temp=(char *) malloc((len=strlen(str))+4);
temp[0]='@';
temp[1]='{';
- _BCOPY(str,temp+2,len);
+ (void) memcpy(temp+2,str,len);
temp[len+2]='}';
temp[len+3]='\0';
free(str);
@@ -279,7 +279,7 @@ string verbatim(str, bracketsonly)
temp=(char *) malloc((len=strlen(str))+4);
temp[0]='@';
temp[1]='(';
- _BCOPY(str,temp+2,len);
+ (void) memcpy(temp+2,str,len);
temp[len+2]=')';
temp[len+3]='\0';
free(str);
@@ -427,7 +427,7 @@ static int text_length(text,terminator)
return(len);
if (*(text+1)=='@')
- _BCOPY(text+2,text+1,strlen(text+1));
+ (void) memmove(text+1,text+2,strlen(text+1));
else if (env_length(text+1) != -1)
return(len);