File: afSetErrorHandler

package info (click to toggle)
audiofile 0.2.6-7%2Blenny1
  • links: PTS
  • area: main
  • in suites: lenny
  • size: 3,752 kB
  • ctags: 1,921
  • sloc: sh: 46,800; ansic: 15,382; makefile: 265
file content (28 lines) | stat: -rw-r--r-- 733 bytes parent folder | download | duplicates (5)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
afSetErrorHandler allows an alternate error handling routine to be
specified.

SYNOPSIS

	#include <audiofile.h>

	AFerrfunc afSetErrorHandler (AFerrfunc errorFunction);

PARAMETERS

errorFunction is a pointer to an error handling function which has the
following prototype:
	void error (long, char *, ...);

RETURN VALUE

The value returned from afSetErrorHandler is a pointer to the previous
error handling function.

DESCRIPTION

The afSetErrorHandler() library function allows the user to override
the default error handling function.

The arguments are a long indicating an error code and a string (which
may have printf-style formatting) followed by a variable argument list
which contains any arguments for the format string.