#include <ctype.h>
#include <errno.h>
#include <fcntl.h>
#include <limits.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include "popt.h"
Go to the source code of this file.
Defines |
#define | _isspaceptr(_chp) isspace((int)(*(unsigned char *)(_chp))) |
#define | xmalloc(_size) malloc(_size) |
#define | xcalloc(_nmemb, _size) calloc((_nmemb), (_size)) |
#define | xrealloc(_ptr, _size) realloc((_ptr), (_size)) |
#define | xstrdup(_str) strdup(_str) |
#define | __attribute__(x) |
#define | UNUSED(x) x __attribute__((__unused__)) |
Functions |
void * | xmalloc (size_t size) |
void * | xcalloc (size_t nmemb, size_t size) |
void * | xrealloc (void *ptr, size_t size) |
char * | xstrdup (const char *str) |
static char * | stpcpy (char *dest, const char *src) |
Define Documentation
#define __attribute__ |
( |
|
x |
) |
|
#define _isspaceptr |
( |
|
_chp |
) |
isspace((int)(*(unsigned char *)(_chp))) |
#define UNUSED |
( |
|
x |
) |
x __attribute__((__unused__)) |
#define xcalloc |
( |
|
_nmemb, |
|
|
|
_size | |
|
) |
| | calloc((_nmemb), (_size)) |
#define xmalloc |
( |
|
_size |
) |
malloc(_size) |
#define xrealloc |
( |
|
_ptr, |
|
|
|
_size | |
|
) |
| | realloc((_ptr), (_size)) |
#define xstrdup |
( |
|
_str |
) |
strdup(_str) |
Function Documentation
static char* stpcpy |
( |
char * |
dest, |
|
|
const char * |
src | |
|
) |
| | [inline, static] |
void* xcalloc |
( |
size_t |
nmemb, |
|
|
size_t |
size | |
|
) |
| | |
void* xmalloc |
( |
size_t |
size |
) |
|
void* xrealloc |
( |
void * |
ptr, |
|
|
size_t |
size | |
|
) |
| | |
char* xstrdup |
( |
const char * |
str |
) |
|
Referenced by findProgramPath(), poptAddItem(), poptGetContext(), poptGetNextOpt(), poptGlob(), poptReadConfigFiles(), poptSaveArg(), poptSaveBits(), poptSaveString(), poptSetExecPath(), poptSetOtherOptionHelp(), and singleOptionHelp().