popt 1.18
system.h File Reference
#include <ctype.h>
#include <stdlib.h>
#include <string.h>
#include "popt.h"
Include dependency graph for system.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Macros

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

Macro Definition Documentation

◆ __attribute__

#define __attribute__ ( x)

Definition at line 63 of file system.h.

◆ _isspaceptr

#define _isspaceptr ( _chp)    isspace((int)(*(unsigned char *)(_chp)))

◆ UNUSED

#define UNUSED ( x)    x __attribute__((__unused__))

Definition at line 65 of file system.h.

◆ xcalloc

#define xcalloc ( _nmemb,
_size )   calloc((_nmemb), (_size))

Definition at line 51 of file system.h.

◆ xmalloc

#define xmalloc ( _size)    malloc(_size)

Definition at line 50 of file system.h.

◆ xrealloc

#define xrealloc ( _ptr,
_size )   realloc((_ptr), (_size))

Definition at line 52 of file system.h.

Referenced by poptSaveString().

◆ xstrdup

Function Documentation

◆ stpcpy()

static char * stpcpy ( char * dest,
const char * src )
inlinestatic

◆ xcalloc()

void * xcalloc ( size_t nmemb,
size_t size )

◆ xmalloc()

void * xmalloc ( size_t size)

◆ xrealloc()

void * xrealloc ( void * ptr,
size_t size )

◆ xstrdup()

char * xstrdup ( const char * str)