PX_new3(3)

PX_new33

Create new instance of paradox file

Usage

#include <paradox.h>

pxdoc_t* PX_new3(void (*errorhandler)(pxdoc_t *p, int type, const char *msg, void *para), void* (*allocproc)(pxdoc_t *p, size_t size, const char *caller), void* (*reallocproc)(pxdoc_t *p, void *mem, size_t size, const char *caller), void (*freeproc)(pxdoc_t *p, void *mem), void *errorhandler_user_data)

Overview

Creates a new instance of a Paradox file. This function, PX_new(3) or PX_new2(3) must be called before any other functions. If the caller has its own error and memory management functions they can be passed.

In opposition to PX_new2(3) this function has an extra parameter errorhandler_user_data which is a pointer to user data which is passed to the error handler function as the fourth parameter. This could be used to pass e.g. a widget pointer where error message are to be output, or a context which otherwise had to passed to the error handler through a global variable.

Return value

Returns a pointer to an internal representation of a Paradox file or NULL on failure.

Releases

11 releases since Debian 3.1 (Sarge); the text changed 5 times.

  1. 3.1
  2. 4.0
  3. 5.0
  4. 6.0
  5. 7–8
  6. 9–13

Author

This manual page was written by Uwe Steinmann [email protected].

From pxlib-dev 0.6.9-1+b1 in Debian 13 (Trixie). Parsed by carta from the page's man source.