Function

GLibset_print_handler

Declaration [src]

GPrintFunc
g_set_print_handler (
  GPrintFunc func
)

Description [src]

Sets the print handler.

Any messages passed to g_print() will be output via the new handler. The default handler simply outputs the message to stdout. By providing your own handler you can redirect the output, to a GTK+ widget or a log file for example.

Parameters

func GPrintFunc
 

The new print handler.

Return value

Returns: GPrintFunc
 

The old print handler.