VistaIONew(3)

VistaIONew3

Allocate storage for an instance of a data type

Usage

#include <vistaio.h>
type *VistaIONew (type)
type;

Arguments

type

Specifies a previously declared data type.

Overview

VistaIONew allocates storage for one instance of a data type. It is a convenience macro that calls VistaIOMalloc(3) with the following arguments specified:

((type *) VistaIOMalloc (sizeof (type))

Return values

VistaIONew returns a pointer to the allocated storage.

Diagnostics

If there is insufficient memory to allocate the new block, VistaIONew terminates by calling VistaIOError(3) with the message ``Out of memory''.

Acknowledgment

This macro and this manual page are based on similar ones included in the X Toolkit Intrinsics, which is Copyright 1985, 1986, 1987, 1988 Massachusetts Institute of Technology, Cambridge, Massachusetts, and Digital Equipment Corporation, Maynard, Massachusetts.

Releases

Unchanged in 6 releases since Debian 8 (Jessie).

  1. 8–13

Author

Art Pope <[email protected]>

Adaption to vistaio: Gert Wollny <[email protected]>

From libvistaio-dev 1.2.19-3+b2 in Debian 13 (Trixie). Parsed by carta from the page's man source.