Museum

Home

Lab Overview

Retrotechnology Articles

Online Manuals

⇒ rf_freebuf(3P4) — CX/UX 6.20

Media Vault

Software Library

Restoration Projects

Artifacts Sought

Related Articles

malloc(3C)

rf_getbuf(3P4)

rf_freebuf(3P4)

NAME

rf_freebuf − release a previously allocated data buffer

SYNOPSIS

#include <rtfiles.h>

void ∗rf_freebuf(buf)
void ∗buf;

DESCRIPTION

The rf_freebuf function releases the buffer referenced by buf which was previously allocated by the rf_getbuf function. 

RETURN VALUE

Upon successful completion, the function rf_freebuf returns zero; otherwise it returns a value of -1 and sets errno to indicate the error. 

ERRORS

Under the following conditions, the function rf_freebuf fails and sets errno to:

­[EINVAL] The argument buf does not point to a buffer allocated by the rf_getbuf function. 

SEE ALSO

malloc(3C), rf_getbuf(3P4)

WARNING

rf_freebuf is based on IEEE Draft Standard P1003.4/D12.  This is an unapproved draft, subject to change.  Use of information contained in this unapproved draft is at your own risk.  This interface will change to reflect any changes made by future drafts of POSIX 1003.4. 

CX/UX Programmer’s Reference Manual

Typewritten Software • bear@typewritten.org • Edmonds, WA 98026