Example program for fmtmsg documentation.
authordrepper <drepper>
Sat, 24 May 1997 01:58:37 +0000 (01:58 +0000)
committerdrepper <drepper>
Sat, 24 May 1997 01:58:37 +0000 (01:58 +0000)
manual/examples/fmtmsgexpl.c [new file with mode: 0644]

diff --git a/manual/examples/fmtmsgexpl.c b/manual/examples/fmtmsgexpl.c
new file mode 100644 (file)
index 0000000..42b8bb5
--- /dev/null
@@ -0,0 +1,12 @@
+#include <fmtmsg.h>
+
+int
+main (void)
+{
+  addseverity (5, "NOTE2");
+  fmtmsg (MM_PRINT, "only1field", MM_INFO, "text2", "action2", "tag2");
+  fmtmsg (MM_PRINT, "UX:cat", 5, "invalid syntax", "refer to manual",
+          "UX:cat:001");
+  fmtmsg (MM_PRINT, "label:foo", 6, "text", "action", "tag");
+  return 0;
+}