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: #ifndef lint
8: static char copyright[] = "Copyright (c) 1990 Regents of the University of California.\nAll rights reserved.\n";
9: static char SccsId[] = "@(#)@(#)pop_xtnd.c 2.1 2.1 3/18/91";
10: #endif not lint
11:
12: #include <stdio.h>
13: #include <sys/types.h>
14: #include "popper.h"
15:
16: /*
17: * xtnd: Handle extensions to the POP protocol suite
18: */
19:
20: extern xtnd_table * pop_get_subcommand();
21:
22: int pop_xtnd (p)
23: POP * p;
24: {
25: xtnd_table * x;
26:
27: /* Convert the XTND subcommand to lower case */
28: pop_lower(p->pop_subcommand);
29:
30: /* Search for the subcommand in the XTND command table */
31: if ((x = pop_get_subcommand(p)) == NULL) return(POP_FAILURE);
32:
33: /* Call the function associated with this subcommand */
34: if (x->function) return((*x->function)(p));
35:
36: /* Otherwise assume NOOP */
37: return (pop_msg(p,POP_SUCCESS,NULL));
38: }
Defined functions
Defined variables
SccsId
defined in line
9;
never used