diff options
Diffstat (limited to 'manual/examples')
-rw-r--r-- | manual/examples/fmtmsgexpl.c | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/manual/examples/fmtmsgexpl.c b/manual/examples/fmtmsgexpl.c new file mode 100644 index 0000000000..42b8bb517f --- /dev/null +++ b/manual/examples/fmtmsgexpl.c @@ -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; +} |