projects
/
unix-history
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
tags
|
clone url
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
blame
|
history
|
raw
|
HEAD
Start development on BSD 2
[unix-history]
/
.ref-BSD-1
/
ex-1.1
/
ex_libS.c
#
/*
* Ex - a text editor
* Bill Joy UCB September, 1977
*
* We use these routines here instead of libS.a because
* we need a printf which prints through putchar().
*/
#include
"ex.h"
strcpy
(
oto
,
from
)
char
*
oto
;
register
char
*
from
;
{
register
char
*
to
;
to
=
oto
;
while
(*
to
++ = *
from
++)
continue
;
return
(
oto
);
}
strcat
(
to
,
from
)
char
*
to
, *
from
;
{
strcpy
(
strend
(
to
),
from
);
return
(
to
);
}
strend
(
cp
)
register
char
*
cp
;
{
while
(*
cp
)
cp
++;
return
(
cp
);
}
strcLIN
(
dp
)
char
*
dp
;
{
return
(
strcpy
(
linebuf
,
dp
));
}