s/qmail  3.3.23
Next generation secure email transport
stralloc_opyb.c
Go to the documentation of this file.
1 #include "stralloc.h"
2 #include "byte.h"
3 
4 int stralloc_copyb(stralloc *sa,char *s,unsigned int n)
5 {
6  if (!stralloc_ready(sa,n + 1)) return 0;
7  byte_copy(sa->s,n,s);
8  sa->len = n;
9  sa->s[n] = 'Z'; /* ``offensive programming'' */
10  return 1;
11 }
void byte_copy(char *, unsigned int, char *)
stralloc sa
Definition: dnscname.c:9
int stralloc_copyb(stralloc *sa, char *s, unsigned int n)
Definition: stralloc_opyb.c:4
unsigned n
Definition: matchup.c:36