]>
diplodocus.org Git - nmh/blob - sbr/fmt_new.h
1 /* fmt_new.h -- read format file/string and normalize
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. */
8 * Create a new format string. Arguments are:
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
16 * This function also takes care of processing \ escapes like \n, \t, etc.
18 * Returns an allocated format string.
20 char *new_fs(char *, char *, char *);
23 * Free memory allocated by new_fs(). It allocates to a static so
24 * no argument is necessary.