s/qmail  3.3.23
Next generation secure email transport
alloc_re.c
Go to the documentation of this file.
1 #include "alloc.h"
2 #include "byte.h"
3 
4 int alloc_re(char **x,unsigned int m,unsigned int n)
5 {
6  char *y;
7 
8  y = alloc(n);
9  if (!y) return 0;
10  byte_copy(y,m,*x);
11  alloc_free(*x);
12  *x = y;
13  return 1;
14 }
char * alloc(unsigned int n)
Definition: alloc.c:16
void byte_copy(char *, unsigned int, char *)
int alloc_re(char **x, unsigned int m, unsigned int n)
Definition: alloc_re.c:4
struct message * m
unsigned x
Definition: matchup.c:36
unsigned n
Definition: matchup.c:36
void alloc_free(char *x)
Definition: alloc.c:26