X-Git-Url: http://www.chiark.greenend.org.uk/ucgi/~mdw/git/mLib/blobdiff_plain/c846879ccf3e86ea293c157f4aa2ff8716fb5b4c..d04f47331945f4316c495b1a8a034a8dba1862c6:/quis.h diff --git a/quis.h b/quis.h index 4d53a5a..508e0a0 100644 --- a/quis.h +++ b/quis.h @@ -1,6 +1,6 @@ /* -*-c-*- * - * $Id: quis.h,v 1.2 1999/05/05 18:50:31 mdw Exp $ + * $Id: quis.h,v 1.5 1999/12/10 23:42:04 mdw Exp $ * * Setting the program name * @@ -22,13 +22,23 @@ * GNU Library General Public License for more details. * * You should have received a copy of the GNU Library General Public - * License along with mLib; if not, write to the Free Software - * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. + * License along with mLib; if not, write to the Free + * Software Foundation, Inc., 59 Temple Place - Suite 330, Boston, + * MA 02111-1307, USA. */ /*----- Revision history --------------------------------------------------* * * $Log: quis.h,v $ + * Revision 1.5 1999/12/10 23:42:04 mdw + * Change header file guard names. + * + * Revision 1.4 1999/10/04 21:43:29 mdw + * New function `pquis'. + * + * Revision 1.3 1999/05/06 19:51:35 mdw + * Reformatted the LGPL notice a little bit. + * * Revision 1.2 1999/05/05 18:50:31 mdw * Change licensing conditions to LGPL. * @@ -37,13 +47,17 @@ * */ -#ifndef PROGNAME_H -#define PROGNAME_H +#ifndef MLIB_PROGNAME_H +#define MLIB_PROGNAME_H #ifdef __cplusplus extern "C" { #endif +/*----- Header files ------------------------------------------------------*/ + +#include + /*----- Global variables --------------------------------------------------*/ extern const char *pn__name; @@ -73,6 +87,21 @@ extern const char *quis(void); extern void ego(const char */*p*/); +/* --- @pquis@ --- * + * + * Arguments: @FILE *fp@ = output stream to write on + * @const char *p@ = pointer to string to write + * + * Returns: Zero if everything worked, EOF if not. + * + * Use: Writes the string @p@ to the output stream @fp@. Occurrences + * of the character `$' in @p@ are replaced by the program name + * as reported by @quis@. A `$$' is replaced by a single `$' + * sign. + */ + +extern int pquis(FILE */*fp*/, const char */*p*/); + /*----- That's all, folks -------------------------------------------------*/ #ifdef __cplusplus