38 #define TM_STRING_H 100
81 #include "stm32fxxx_hal.h"
94 #ifndef LIB_ALLOC_FUNC
95 #define LIB_ALLOC_FUNC malloc
100 #define LIB_FREE_FUNC free
195 #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_stm32_string.h:119
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_stm32_string.h:118
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_stm32_string.h:117
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_stm32_string.h:116