~mdw
/
qmail
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
blame
|
history
|
raw
|
HEAD
Debianization for 1.03-1
[qmail]
/
stralloc_opyb.c
1
#include
"stralloc.h"
2
#include
"byte.h"
3
4
int
stralloc_copyb
(
sa
,
s
,
n
)
5
stralloc
*
sa
;
6
char
*
s
;
7
unsigned int
n
;
8
{
9
if
(!
stralloc_ready
(
sa
,
n
+
1
))
return
0
;
10
byte_copy
(
sa
->
s
,
n
,
s
);
11
sa
->
len
=
n
;
12
sa
->
s
[
n
] =
'Z'
;
/* ``offensive programming'' */
13
return
1
;
14
}