This is Unofficial EPICS BASE Doxygen Site
dbmf.h
Go to the documentation of this file.
1 /*************************************************************************\
2 * Copyright (c) 2002 The University of Chicago, as Operator of Argonne
3 * National Laboratory.
4 * Copyright (c) 2002 The Regents of the University of California, as
5 * Operator of Los Alamos National Laboratory.
6 * EPICS BASE is distributed subject to a Software License Agreement found
7 * in file LICENSE that is included with this distribution.
8 \*************************************************************************/
9 
34 #ifndef DBMF_H
35 #define DBMF_H
36 
37 #include <stdlib.h>
38 #include "libComAPI.h"
39 
40 #ifdef __cplusplus
41 extern "C" {
42 #endif
43 
55 LIBCOM_API int dbmfInit(size_t size, int chunkItems);
61 LIBCOM_API void * dbmfMalloc(size_t bytes);
69 LIBCOM_API char * dbmfStrdup(const char *str);
79 LIBCOM_API char * dbmfStrndup(const char *str, size_t len);
90 LIBCOM_API char * dbmfStrcat3(const char *lhs, const char *mid,
91  const char *rhs);
97 LIBCOM_API void dbmfFree(void *bytes);
101 LIBCOM_API void dbmfFreeChunks(void);
107 LIBCOM_API int dbmfShow(int level);
108 
109 #ifdef __cplusplus
110 }
111 #endif
112 
113 #endif
LIBCOM_API char * dbmfStrcat3(const char *lhs, const char *mid, const char *rhs)
Concatenate three strings.
Definition: dbmf.c:289
LIBCOM_API void * dbmfMalloc(size_t bytes)
Allocate memory.
Definition: dbmf.c:97
#define str(v)
LIBCOM_API void dbmfFreeChunks(void)
Free all chunks that contain only free items.
Definition: dbmf.c:241
LIBCOM_API void dbmfFree(void *bytes)
Free the memory allocated by dbmfMalloc.
Definition: dbmf.c:175
LIBCOM_API int dbmfShow(int level)
Show the status of the dbmf memory pool.
Definition: dbmf.c:205
LIBCOM_API int dbmfInit(size_t size, int chunkItems)
Initialize the facility.
Definition: dbmf.c:71
LIBCOM_API char * dbmfStrdup(const char *str)
Duplicate a string.
Definition: dbmf.c:159
LIBCOM_API char * dbmfStrndup(const char *str, size_t len)
Duplicate a string (up to len bytes).
Definition: dbmf.c:167