]> diplodocus.org Git - nmh/blob - sbr/fmt_new.h
Improve fmttest output
[nmh] / sbr / fmt_new.h
1 /* fmt_new.h -- read format file/string and normalize
2 *
3 * This code is Copyright (c) 2017, by the authors of nmh. See the
4 * COPYRIGHT file in the root directory of the nmh distribution for
5 * complete copyright information. */
6
7 /*
8 * Create a new format string. Arguments are:
9 *
10 * form - Name of format file. Will be searched by etcpath(), see that
11 * function for details.
12 * format - The format string to be used if no format file is given
13 * default_fs - The default format string to be used if neither form nor
14 * format is given
15 *
16 * This function also takes care of processing \ escapes like \n, \t, etc.
17 *
18 * Returns an allocated format string.
19 */
20 char *new_fs(char *, char *, char *);
21
22 /*
23 * Free memory allocated by new_fs(). It allocates to a static so
24 * no argument is necessary.
25 */
26 void free_fs(void);