Merge from vendor branch GCC:
[dragonfly.git] / crypto / heimdal-0.6.3 / appl / popper / pop_stat.c
1 /*
2  * Copyright (c) 1989 Regents of the University of California.
3  * All rights reserved.  The Berkeley software License Agreement
4  * specifies the terms and conditions for redistribution.
5  */
6
7 #include <popper.h>
8 RCSID("$Id: pop_stat.c,v 1.7 1997/05/11 11:04:35 assar Exp $");
9
10 /* 
11  *  stat:   Display the status of a POP maildrop to its client
12  */
13
14 int
15 pop_stat (POP *p)
16 {
17 #ifdef DEBUG
18     if (p->debug) pop_log(p,POP_DEBUG,"%d message(s) (%ld octets).",
19                           p->msg_count-p->msgs_deleted,
20                           p->drop_size-p->bytes_deleted);
21 #endif /* DEBUG */
22     return (pop_msg (p,POP_SUCCESS,
23                      "%d %ld",
24                      p->msg_count-p->msgs_deleted,
25                      p->drop_size-p->bytes_deleted));
26 }