home *** CD-ROM | disk | FTP | other *** search
-
-
-
- ccccaaaattttmmmmssssggggffffmmmmtttt((((3333CCCC)))) ccccaaaattttmmmmssssggggffffmmmmtttt((((3333CCCC))))
-
-
-
- NNNNAAAAMMMMEEEE
- catmsgfmt - formats an error message
-
- SSSSYYYYNNNNOOOOPPPPSSSSIIIISSSS
- fixed: .nf _####_iiii_nnnn_cccc_llll_uuuu_dddd_eeee _<<<<_nnnn_llll______tttt_yyyy_pppp_eeee_ssss_...._hhhh_>>>>
-
- _cccc_hhhh_aaaa_rrrr _****_cccc_aaaa_tttt_mmmm_ssss_gggg_ffff_mmmm_tttt _((((_cccc_oooo_nnnn_ssss_tttt _cccc_hhhh_aaaa_rrrr _****_c_m_d_n_a_m_e_,,,, _cccc_oooo_nnnn_ssss_tttt _cccc_hhhh_aaaa_rrrr _****_g_r_o_u_p_c_o_d_e_,,,, _iiii_nnnn_tttt _m_s_g_n_u_m_,,,,
- _cccc_oooo_nnnn_ssss_tttt _cccc_hhhh_aaaa_rrrr _****_s_e_v_e_r_i_t_y_,,,, _cccc_oooo_nnnn_ssss_tttt _cccc_hhhh_aaaa_rrrr _****_m_s_g_t_e_x_t_,,,, _cccc_hhhh_aaaa_rrrr _****_b_u_f_,,,, _iiii_nnnn_tttt _b_u_f_l_e_n_,,,,
- _cccc_oooo_nnnn_ssss_tttt _cccc_hhhh_aaaa_rrrr _****_p_o_s_i_t_i_o_n_,,,, _cccc_oooo_nnnn_ssss_tttt _cccc_hhhh_aaaa_rrrr _****_d_e_b_u_g_))))_;;;;
-
- DDDDEEEESSSSCCCCRRRRIIIIPPPPTTTTIIIIOOOONNNN
- The _cccc_aaaa_tttt_mmmm_ssss_gggg_ffff_mmmm_tttt function produces a formatted message that consists of the
- command name (_c_m_d_n_a_m_e), group code (_g_r_o_u_p_c_o_d_e), message number (_m_s_g_n_u_m),
- severity level (_s_e_v_e_r_i_t_y), message text (_m_s_g_t_e_x_t), and optional position
- (_p_o_s_i_t_i_o_n) and debugging (_d_e_b_u_g) information. The formatted message is
- placed in the user-supplied buffer, which is pointed to by _b_u_f, and
- terminated with a null byte. If the formatted message is longer than
- _b_u_f_l_e_n bytes, it is truncated to _b_u_f_l_e_n bytes with a null byte.
-
- The _c_m_d_n_a_m_e, _g_r_o_u_p_c_o_d_e, _s_e_v_e_r_i_t_y, _m_s_g_t_e_x_t, and optional _p_o_s_i_t_i_o_n and
- _d_e_b_u_g arguments are null-terminated strings. The command name identifies
- the command or function issuing the error message. Typically, the group
- code is the same value as that specified as the _n_a_m_e parameter on the
- _cccc_aaaa_tttt_oooo_pppp_eeee_nnnn(3C) function. Typically, the message number is the same value as
- that specified on the _cccc_aaaa_tttt_gggg_eeee_tttt_mmmm_ssss_gggg(3C) or _cccc_aaaa_tttt_gggg_eeee_tttt_ssss(3C) function.
-
- The _p_o_s_i_t_i_o_n and _d_e_b_u_g arguments are optional. Their contents are
- inserted in the error message only if provided and only if included in
- the _MMMM_SSSS_GGGG______FFFF_OOOO_RRRR_MMMM_AAAA_TTTT environment variable. Specifying a null value for either
- (or both) parameters is equivalent to not specifying either (or both)
- parameters.
-
- NNNNOOOOTTTTEEEESSSS
- The _MMMM_SSSS_GGGG______FFFF_OOOO_RRRR_MMMM_AAAA_TTTT environment variable controls the formatting of the
- message. If the _MMMM_SSSS_GGGG______FFFF_OOOO_RRRR_MMMM_AAAA_TTTT environment variable is not defined, a
- default format is used. See the _eeee_xxxx_pppp_llll_aaaa_iiii_nnnn(1) man page for a description of
- message formats and the _MMMM_SSSS_GGGG______FFFF_OOOO_RRRR_MMMM_AAAA_TTTT environment variable.
-
- _MMMM_SSSS_GGGG______FFFF_OOOO_RRRR_MMMM_AAAA_TTTT can include an optional time stamp for the message. The
- format of this time stamp is equivalent to that produced by the
- _cccc_ffff_tttt_iiii_mmmm_eeee(3C) function and can be overridden by the _CCCC_FFFF_TTTT_IIII_MMMM_EEEE environment
- variable. For a description of time-stamp formats, see the _ssss_tttt_rrrr_ffff_tttt_iiii_mmmm_eeee(3C)
- man page.
-
- RRRREEEETTTTUUUURRRRNNNN VVVVAAAALLLLUUUUEEEESSSS
- If successful, _cccc_aaaa_tttt_mmmm_ssss_gggg_ffff_mmmm_tttt returns a pointer to the user-supplied buffer.
- If unsuccessful, it returns a null pointer.
-
- SSSSEEEEEEEE AAAALLLLSSSSOOOO
- caterr(1), explain(1), gencat(1), whichcat(1), catgetmsg(3C),
- catgets(3C), catopen(3C), strftime(3C), nl_types(5).
-
-
-
-
- PPPPaaaaggggeeee 1111
-
-
-
-