clSetErrorHandler man page on IRIX

Man page or keyword search:  
man Server   31559 pages
apropos Keyword Search (all sections)
Output format
IRIX logo
[printable version]



clSetErrorHandler(3dm)					clSetErrorHandler(3dm)

NAME
     clSetErrorHandler - Select an alternate error handling routine

SYNOPSIS
     #include <dmedia/cl.h>

     CLerrFunc clSetErrorHandler(CLerrFunc efunc)

ARGUMENTS
     efunc  A pointer to an error handling routine declared as
	    void ErrorFunc(CLhandle handle, int code, const char *format, ...)

DESCRIPTION
     clSetErrorHandler allows overriding of the Compression Library's default
     error handling routine, which prints a message to stderr.

     The arguments that are passed to the error handling routine are a handle
     to the processing object, an error code, and a printf-like string
     optionally followed with printf-like arguments.

     The error codes are listed in <dmedia/cl.h>.

RETURN VALUE
     clSetErrorHandler returns a pointer to the previous error handling
     routine.

EXAMPLE
	  #include <dmedia/cl.h>

	  CLerrFunc originalErrorHandler;
	   ...
	  void silentCLError(CLhandle handle, int code, const char* format, ...)
	  {
	       /* ignore all CL errors */
	  }
	   ...
	  originalErrorHandler = clSetErrorHandler(silentCLError);
	  /* CL errors here will go unnoticed */
	   ...
	  clSetErrorHandler(originalErrorHandler);
	  /* back to normal reporting of CL errors */
	   ...

SEE ALSO
     CLintro(3dm), clError(3dm), stdarg(5)

									Page 1

[top]

List of man pages available for IRIX

Copyright (c) for man pages and the logo by the respective OS vendor.

For those who want to learn more, the polarhome community provides shell access and support.

[legal] [privacy] [GNU] [policy] [cookies] [netiquette] [sponsors] [FAQ]
Tweet
Polarhome, production since 1999.
Member of Polarhome portal.
Based on Fawad Halim's script.
....................................................................
Vote for polarhome
Free Shell Accounts :: the biggest list on the net