libmove3d
3.13.0
|
String utilities. More...
#include "Util-pkg.h"
Functions | |
char * | strdup (const char *str) |
int | fixed_str_copy (char *dest, const char *src, int *indice, int size) |
Concat a string to a fixed sized string. | |
char * | dyna_str_dup (const char *data) |
Copy and allocate the memory for a string. | |
void | dyna_str_free (char *data) |
Release the memory owned by a dynamic string. |
String utilities.
These functions are used to manage strings.
char* dyna_str_dup | ( | const char * | data | ) |
Copy and allocate the memory for a string.
data,: | the string that must be copied |
void dyna_str_free | ( | char * | data | ) |
Release the memory owned by a dynamic string.
data,: | the string. |
int fixed_str_copy | ( | char * | dest, |
const char * | src, | ||
int * | indice, | ||
int | size | ||
) |
Concat a string to a fixed sized string.
dest,: | the string to copy into |
src,: | string that must be copied |
indice,: | where the string must be copied |
size,: | the size of dest |
indice,: | the lenght of the string |