chiark / gitweb /
Release version 2.1.1.
[mLib] / quis.h
diff --git a/quis.h b/quis.h
index 4d53a5a1aec6f19c768440cf764619d591fce34b..17fbb3626bad8726ce1c73f8ddc7227a4d30c19f 100644 (file)
--- a/quis.h
+++ b/quis.h
@@ -1,13 +1,13 @@
 /* -*-c-*-
  *
- * $Id: quis.h,v 1.2 1999/05/05 18:50:31 mdw Exp $
+ * $Id: quis.h,v 1.6 2004/04/08 01:36:13 mdw Exp $
  *
  * Setting the program name
  *
  * (c) 1998 Straylight/Edgeware
  */
 
-/*----- Licensing notice --------------------------------------------------* 
+/*----- Licensing notice --------------------------------------------------*
  *
  * This file is part of the mLib utilities library.
  *
  * it under the terms of the GNU Library General Public License as
  * published by the Free Software Foundation; either version 2 of the
  * License, or (at your option) any later version.
- * 
+ *
  * mLib is distributed in the hope that it will be useful,
  * but WITHOUT ANY WARRANTY; without even the implied warranty of
  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
  * 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.
- */
-
-/*----- Revision history --------------------------------------------------*
- *
- * $Log: quis.h,v $
- * Revision 1.2  1999/05/05 18:50:31  mdw
- * Change licensing conditions to LGPL.
- *
- * Revision 1.1.1.1  1998/06/17 23:44:42  mdw
- * Initial version of mLib
  *
+ * 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.
  */
 
-#ifndef PROGNAME_H
-#define PROGNAME_H
+#ifndef MLIB_PROGNAME_H
+#define MLIB_PROGNAME_H
 
 #ifdef __cplusplus
   extern "C" {
 #endif
 
+/*----- Header files ------------------------------------------------------*/
+
+#include <stdio.h>
+
 /*----- Global variables --------------------------------------------------*/
 
 extern const char *pn__name;
@@ -73,6 +67,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