File: template.c

package info (click to toggle)
mailfromd 9.1-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 11,512 kB
  • sloc: ansic: 56,882; sh: 22,979; yacc: 4,130; lex: 1,428; makefile: 928; lisp: 488; awk: 393; perl: 319; sed: 25
file content (26 lines) | stat: -rw-r--r-- 632 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
/* A stub file for the <MODNAME> module.  Edit it and remove this comment. */
#include "config.h"
#include <mailfromd/mfmod.h>
#include <mailfromd/exceptions.h>
#include <mailutils/mailutils.h>

/*
 * version()
 * ---------
 * This function is for illustrative purpose only.  Remove it, if you
 * don't need it.
 *
 * Arguments: None
 * Returns: Version of <MODNAME> (string).
 */
int
version(long count, MFMOD_PARAM *param, MFMOD_PARAM *retval)
{
	ASSERT_ARGCOUNT(retval, count, 0);
	retval->type = mfmod_string;
	if ((retval->string = malloc(sizeof(VERSION))) == NULL)
		return -1;
	strcpy(retval->string, VERSION);
	return 0;
}