X-Git-Url: http://www.chiark.greenend.org.uk/ucgi/~mdw/git/mLib/blobdiff_plain/002eaee36ed12caf6cf7f2a7188111240a427d80..4a74ab7362a5ce6fc2ef4e4b20dc784c5f6f5f4e:/quis.h diff --git a/quis.h b/quis.h index 0f6ab29..e2ba2ee 100644 --- a/quis.h +++ b/quis.h @@ -1,6 +1,6 @@ /* -*-c-*- * - * $Id: quis.h,v 1.3 1999/05/06 19:51:35 mdw Exp $ + * $Id: quis.h,v 1.4 1999/10/04 21:43:29 mdw Exp $ * * Setting the program name * @@ -30,6 +30,9 @@ /*----- Revision history --------------------------------------------------* * * $Log: quis.h,v $ + * 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. * @@ -48,6 +51,10 @@ extern "C" { #endif +/*----- Header files ------------------------------------------------------*/ + +#include + /*----- Global variables --------------------------------------------------*/ extern const char *pn__name; @@ -77,6 +84,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