Postfix3.3.1
mail_pathname.c
[詳解]
1 /*++
2 /* NAME
3 /* mail_pathname 3
4 /* SUMMARY
5 /* generate pathname from mailer service class and name
6 /* SYNOPSIS
7 /* #include <mail_proto.h>
8 /*
9 /* char *mail_pathname(service_class, service_name)
10 /* char *service_class;
11 /* char *service_name;
12 /* DESCRIPTION
13 /* mail_pathname() translates the specified service class and name
14 /* to a pathname. The result should be passed to myfree() when it
15 /* no longer needed.
16 /* LICENSE
17 /* .ad
18 /* .fi
19 /* The Secure Mailer license must be distributed with this software.
20 /* AUTHOR(S)
21 /* Wietse Venema
22 /* IBM T.J. Watson Research
23 /* P.O. Box 704
24 /* Yorktown Heights, NY 10598, USA
25 /*--*/
26 
27 /* System library. */
28 
29 #include <sys_defs.h>
30 
31 /* Utility library. */
32 
33 #include <stringops.h>
34 
35 /* Global library. */
36 
37 #include "mail_proto.h"
38 
39 /* mail_pathname - map service class and service name to pathname */
40 
41 char *mail_pathname(const char *service_class, const char *service_name)
42 {
43  return (concatenate(service_class, "/", service_name, (char *) 0));
44 }
char * mail_pathname(const char *service_class, const char *service_name)
Definition: mail_pathname.c:41
char * concatenate(const char *arg0,...)
Definition: concatenate.c:42