screen_print_packet()

Print a screen packet to a specified file.

Synopsis:

#include <screen/screen.h>
 
int screen_print_packet(int type,
                        void *packet,
                        FILE *fd)

Arguments:

type

The type of packet to be printed. The packet must be of type Screen_Packet_Types.

packet

The address of the packet to be printed.

fd

The file object where the packet is to be printed to.

Library:

libscreen

Description:

Function Type: Immediate Execution

This function prints out the information relevant to the specified packet to a specified file.

Returns:

0 if the operation was successful, or -1 if an error occurred (errno is set; refer to /usr/include/errno.h for more details).