31 #define TM_STRING_H 110
77 #include "stm32f4xx.h"
90 #ifndef LIB_ALLOC_FUNC
91 #define LIB_ALLOC_FUNC malloc
96 #define LIB_FREE_FUNC free
191 #define TM_STRING_GetCount(str) ((str)->Count)
void TM_STRING_Free(TM_STRING_t *String)
Free main structure and pointer to all pointers.
uint32_t Size
Definition: tm_stm32f4_string.h:115
TM_STRING_t * TM_STRING_Create(uint16_t count)
Creates and allocated string structure and memory for pointers for desired number of strings...
uint32_t Count
Definition: tm_stm32f4_string.h:114
TM_STRING_t * TM_STRING_ReplaceString(TM_STRING_t *String, uint16_t pos, char *str)
Replaces already added string with new string.
void TM_STRING_FreeAll(TM_STRING_t *String)
Free all. It will free all strings, all pointers to strings and also main string structure.
char * TM_STRING_GetString(TM_STRING_t *String, uint16_t pos)
Gets pointer to string at desired position.
char ** Strings
Definition: tm_stm32f4_string.h:113
uint16_t TM_STRING_AddString(TM_STRING_t *String, char *str)
Adds new string to main string structure.
TM_STRING_t * TM_STRING_DeleteString(TM_STRING_t *String, uint16_t pos)
Deletes string from strings array.
Main string structure.
Definition: tm_stm32f4_string.h:112