esetenv man page on Alpinelinux

Man page or keyword search:  
man Server   18016 pages
apropos Keyword Search (all sections)
Output format
Alpinelinux logo
[printable version]

ECALLOC(3)		 BSD Library Functions Manual		    ECALLOC(3)

NAME
     ecalloc, emalloc, eread, erealloc, esetenv, estrdup, ewrite ā€” exit-on-
     failure wrapper functions

LIBRARY
     The roken library (libroken, -lroken)

SYNOPSIS
     #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)

HEIMDAL				August 14, 2003			       HEIMDAL
[top]

List of man pages available for Alpinelinux

Copyright (c) for man pages and the logo by the respective OS vendor.

For those who want to learn more, the polarhome community provides shell access and support.

[legal] [privacy] [GNU] [policy] [cookies] [netiquette] [sponsors] [FAQ]
Tweet
Polarhome, production since 1999.
Member of Polarhome portal.
Based on Fawad Halim's script.
....................................................................
Vote for polarhome
Free Shell Accounts :: the biggest list on the net