home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
The Fred Fish Collection 1.5
/
ffcollection-1-5-1992-11.iso
/
ff_disks
/
400-499
/
ff473.lzh
/
CNewsSrc
/
cnews_src.lzh
/
man
/
error.man
< prev
next >
Wrap
Text File
|
1991-01-05
|
3KB
|
67 lines
ERROR(3) C LIBRARY FUNCTIONS ERROR(3)
NNNNAAAAMMMMEEEE
error, warning - print error messages
SSSSYYYYNNNNOOOOPPPPSSSSIIIISSSS
eeeerrrrrrrroooorrrr((((ssss1111,,,, ssss2222))))
cccchhhhaaaarrrr ****ssss1111;;;;
cccchhhhaaaarrrr ****ssss2222;;;;
wwwwaaaarrrrnnnniiiinnnngggg((((ssss1111,,,, ssss2222))))
cccchhhhaaaarrrr ****ssss1111;;;;
cccchhhhaaaarrrr ****ssss2222;;;;
eeeexxxxtttteeeerrrrnnnn cccchhhhaaaarrrr ****pppprrrrooooggggnnnnaaaammmmeeee;;;;
eeeexxxxtttteeeerrrrnnnn iiiinnnntttt eeeerrrrrrrrnnnnoooo;;;;
pppprrrrooooggggnnnnaaaammmmeeee ==== aaaarrrrggggvvvv[[[[0000]]]];;;;
DDDDEEEESSSSCCCCRRRRIIIIPPPPTTTTIIIIOOOONNNN
_W_a_r_n_i_n_g prints an error message, with suitable embellish-
ments, and clears _e_r_r_n_o. _E_r_r_o_r does likewise and then
exits. The _s_1 argument should be a _p_r_i_n_t_f format string
(without a trailing newline), with _s_2 available as an argu-
ment.
If there is an environment variable CCCCMMMMDDDDNNNNAAAAMMMMEEEE with non-null
value, its contents are printed first, followed by a colon.
Following this, any non-null value of _p_r_o_g_n_a_m_e is printed,
followed by a colon and a space. Following this, _f_p_r_i_n_t_f(3)
is invoked with _s_1 as the format string and _s_2 as the argu-
ment. If the value of _e_r_r_n_o is within the normal range, a
standard elaborating message is printed (see _i_n_t_r_o(2)).
CCCCMMMMDDDDNNNNAAAAMMMMEEEE should be set by shellfiles that expect subordinate
programs to issue error message in the shellfile's name.
_P_r_o_g_n_a_m_e should be set by all programs; _a_r_g_v[_0] is usually a
suitable thing to set it to. _E_r_r_n_o is set by system calls
and various other routines, although its use is not univer-
sal; note that it is not reset by successful system calls
following an unsuccessful one.
SSSSEEEEEEEE AAAALLLLSSSSOOOO
intro(2), intro(3), printf(3), exit(2), getopt(3)
DDDDIIIIAAAAGGGGNNNNOOOOSSSSTTTTIIIICCCCSSSS
_E_r_r_o_r's exit status is 1.
HHHHIIIISSSSTTTTOOOORRRRYYYY
Local products, modelled on the _e_r_r_o_r in Kernighan&Pike.
BBBBUUUUGGGGSSSS
Be nice if they could take a full _p_r_i_n_t_f-style argument
list.
Sun Microsystems Last change: local 1