summary refs log tree commit diff
path: root/manual/examples/fmtmsgexpl.c
blob: 42b8bb517fd3dc2f01a77b7c157cb71de2d65c1e (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
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;
}