VistaIONew(3)
β¨ VistaIONew β allocate storage for an instance of a data type β¨
okay bestie, gather round, because this one is short and sweet and honestly a little iconic π
πΈ SYNOPSIS
#include <vistaio.h>
type *VistaIONew (type)
type;
π ARGUMENTS
typeβ a data type you already declared earlier. that's it. that's the whole input. she's low maintenance like that π«Ά
π DESCRIPTION
VistaIONew grabs you some storage for one instance of a data type. it's not out here doing heavy lifting β it's a convenience macro, a lil helper, and what it does is call VistaIOMalloc(3) with these arguments:
((type *) VistaIOMalloc (sizeof (type))
so like. it's giving "I'll do the casting for you so you don't have to" β¨ the way that it just handles sizeof and the cast and everything?? obsessed. no cap.
β RETURN VALUES
VistaIONew returns a pointer to the allocated storage. boom. that's your pointer. you're welcome π
π₯ DIAGNOSTICS
if there is insufficient memory to allocate the new block,VistaIONewdoes not return β it terminates by callingVistaIOError(3)with the message `` Out of memory ''. so yeah. that's a whole dramatic exit π not a quiet one.
π SEE ALSO
iykyk, go read those next bestie π¦
π AUTHOR
Art Pope <pope@cs.ubc.ca>
Adaption to vistaio: Gert Wollny <gw.fossdev@gmail.com>
π§ 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. shoutout to the OGs fr fr π
aaaand that's the whole page bestie, we ate π this is VistaIO Version 1.2.14, dated 24 April 1993 β yes she's older than us and still slaying, main character energy forever β¨π π
π¦ where this page comes from
- debian bookworm: libvistaio-dev 1.2.19-3 Β· libvista-orig
- debian trixie: libvistaio-dev 1.2.19-3+b2 Β· libvista-orig
- ubuntu jammy: libvistaio-dev 1.2.19-3 Β· libvista-orig
- ubuntu noble: libvistaio-dev 1.2.19-3 Β· libvista-orig
- ubuntu questing: libvistaio-dev 1.2.19-4
- ubuntu resolute: libvistaio-dev 1.2.19-4build1 Β· libvista-orig
- ubuntu stonking: libvistaio-dev 1.2.19-4build1 Β· libvista-orig
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms