blaze822: add blaze822_headerlen

This commit is contained in:
Christian Neukirchen 2016-07-16 22:18:29 +02:00
parent a07d2c9d9b
commit d1e4b5f503
2 changed files with 7 additions and 0 deletions

View File

@ -555,6 +555,12 @@ error:
return 0;
}
size_t
blaze822_headerlen(struct message *mesg)
{
return mesg->end - mesg->msg;
}
char *
blaze822_body(struct message *mesg)
{

View File

@ -22,6 +22,7 @@ time_t blaze822_date(char *);
char *blaze822_addr(char *, char **, char **);
char *blaze822_body(struct message *mesg);
size_t blaze822_bodylen(struct message *mesg);
size_t blaze822_headerlen(struct message *mesg);
int blaze822_loop(int, char **, void (*)(char *));