*nix Documentation Project
·  Home
 +   man pages
·  Linux HOWTOs
·  FreeBSD Tips
·  *niX Forums

  man pages->IRIX man pages -> old-compression/clSetErrorHandler (3d)              
Title
Content
Arch
Section
 

Contents


clSetErrorHandler(3dm)					clSetErrorHandler(3dm)


NAME    [Toc]    [Back]

     clSetErrorHandler - Select	an alternate error handling routine

SYNOPSIS    [Toc]    [Back]

     #include <dmedia/cl.h>

     CLerrFunc clSetErrorHandler(CLerrFunc efunc)    [Toc]    [Back]

ARGUMENTS    [Toc]    [Back]

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

DESCRIPTION    [Toc]    [Back]

     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    [Toc]    [Back]

     clSetErrorHandler returns a pointer to the	previous error handling
     routine.

EXAMPLE    [Toc]    [Back]

	  #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    [Toc]    [Back]

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


									PPPPaaaaggggeeee 1111
[ Back ]
 Similar pages
Name OS Title
alSetErrorHandler IRIX establish an alternate audio error handling routine
ALseterrorhandler IRIX (obsolete) establish an alternate audio error handling routine
AFseterrorhandler IRIX supply an alternate error reporting routine to the Audio File Library
pick Tru64 select messages by content (only available within the message handling system, mh)
elf_error IRIX error handling
iflError IRIX error handling
matherr IRIX error-handling function
TIFFError IRIX library error handling interface
cplxerr IRIX error-handling function for the C++ Complex Math Library
IPC::Open3 IRIX open a process for reading, writing, and error handling
Copyright © 2004-2005 DeniX Solutions SRL
newsletter delivery service