Error(3)

Error3

Retrieve error codes

Usage

#include <volpack.h>

vpResult

vpGetError(vpc)

vpContext *vpc;

char *

vpGetErrorString(code)

vpResult code;

Arguments

vpc

VolPack context from vpCreateContext.

code

A VolPack error result code.

Overview

These routines are used for error handling. vpGetError return the error code from the first function call that failed since the last call to vpGetError. vpGetErrorString returns a descriptive string corresponding to an error code. The string is stored in a global array so it does not need to be copied to separate memory.

Errors

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

Releases

9 releases since Debian 5.0 (Lenny); the text changed 1 time.

  1. 5.0–10
  2. 11–13

From libvolpack1-dev 1.0b3-10 in Debian 13 (Trixie). Parsed by carta from the page's man source.