NVBIO
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Macros | Functions
string_alloc.c File Reference
#include <string.h>
#include <stdlib.h>
#include <stdio.h>
#include "string_alloc.h"

Go to the source code of this file.

Macros

#define MIN_STR_SIZE   1024
 

Functions

string_alloc_tstring_pool_create (size_t max_length)
 
void string_pool_destroy (string_alloc_t *a_str)
 
char * string_alloc (string_alloc_t *a_str, size_t length)
 
char * string_dup (string_alloc_t *a_str, char *instr)
 
char * string_ndup (string_alloc_t *a_str, char *instr, size_t len)
 

Macro Definition Documentation

#define MIN_STR_SIZE   1024

Definition at line 45 of file string_alloc.c.

Function Documentation

char* string_alloc ( string_alloc_t a_str,
size_t  length 
)

Definition at line 108 of file string_alloc.c.

char* string_dup ( string_alloc_t a_str,
char *  instr 
)

Definition at line 140 of file string_alloc.c.

char* string_ndup ( string_alloc_t a_str,
char *  instr,
size_t  len 
)

Definition at line 144 of file string_alloc.c.

string_alloc_t* string_pool_create ( size_t  max_length)

Definition at line 52 of file string_alloc.c.

void string_pool_destroy ( string_alloc_t a_str)

Definition at line 94 of file string_alloc.c.