
PCI CD and PCI CDa
Document Number: 008-00965-06 EDT Public Revision: I December 2004
Template: edt.dot
Page 53
Arguments
msg_p
the message handle
Example
See edt_msg
Return
Void
See Also
edt_msg, edt_msg_set_level
edt_msg_set_msg_file
Description
Sets the output file pointer for the message handler. Expects a file handle for a file that is already open.
Syntax
void edt_msg_set_msg_file(EdtMsgHandler *msg_p, FILE *fp)
Arguments
msg_p
the message handle
p
pointer to a file handle that is already open, to which the messages should
be output
Example
EdtMsgHandler msg_p;
FILE *fp = fopen("messages.out", "w");
edt_msg_init(&msg_p);
edt_msg_set_file(&msg_p, fp);
Return
Void
edt_msg_perror
Description
Conditionally outputs a system perror using the default message pointer.
Syntax
int edt_msg_perror(int level, char *msg)
Arguments
level
message level, described in the overview
msg
message to concatenate to the system error
Example
if ((fp = fopen ("file.txt", "r")) == NULL)
Comentarios a estos manuales