GSP
Quick Navigator

Search Site

Unix VPS
A - Starter
B - Basic
C - Preferred
D - Commercial
MPS - Dedicated
Previous VPSs
* Sign Up! *

Support
Contact Us
Online Help
Handbooks
Domain Status
Man Pages

FAQ
Virtual Servers
Pricing
Billing
Technical

Network
Facilities
Connectivity
Topology Map

Miscellaneous
Server Agreement
Year 2038
Credits
 

USA Flag

 

 

Man Pages


Manual Reference Pages  -  EMALLOC (3)

NAME

ecalloc, emalloc, eread, erealloc, esetenv, estrdup, ewrite - exit-on-failure wrapper functions

CONTENTS

Library
Synopsis
Description
See Also

LIBRARY

The roken library (libroken, -lroken)

SYNOPSIS


.Fd #include <roken.h> void * ecalloc size_t number size_t size void * emalloc size_t sz ssize_t eread int fd void *buf size_t nbytes void * erealloc void *ptr size_t sz void esetenv const char *var const char *val int rewrite char * estrdup const char *str ssize_t ewrite int fd const void *buf size_t nbytes

DESCRIPTION

These functions do the same as the ones without the "e" prefix, but if there is an error they will print a message with errx(3), and exit. For eread and ewrite this is also true for partial data.

This is useful in applications when there is no need for a more advanced failure mode.

SEE ALSO

read(2), write(2), calloc(3), errx(3), malloc(3), realloc(3), setenv(3), strdup(3)
Search for    or go to Top of page |  Section 3 |  Main Index


Powered by GSP Visit the GSP FreeBSD Man Page Interface.
Output converted with manServer 1.07.