1vpGetError(3)              Library Functions Manual              vpGetError(3)
2
3
4

NAME

6       vpGetError, vpGetErrorString - retrieve error codes
7

SYNOPSIS

9       #include <volpack.h>
10
11       vpResult
12       vpGetError(vpc)
13           vpContext *vpc;
14
15       char *
16       vpGetErrorString(code)
17           vpResult code;
18

ARGUMENTS

20       vpc    VolPack context from vpCreateContext.
21
22       code   A VolPack error result code.
23

DESCRIPTION

25       These  routines  are  used  for  error handling.  vpGetError return the
26       error code from the first function call that failed since the last call
27       to  vpGetError.   vpGetErrorString  returns a descriptive string correā€
28       sponding to an error code.  The string is stored in a global  array  so
29       it does not need to be copied to separate memory.
30

ERRORS

32       vpGetError  cannot  fail.  A return value not equal to VP_OK means that
33       some previous function call has failed.  vpGetErrorString returns  NULL
34       if code is invalid.
35

SEE ALSO

37       VolPack(3), vpCreateContext(3)
38
39
40
41VolPack                                                          vpGetError(3)
Impressum