lv_strdup() function
Duplicate a string by allocating a new one and copying the content.
Syntax
char * lv_strdup(const char * src); Arguments
src
Pointer to the source of data to be copied.
Return value
A pointer to the new allocated string. NULL if failed.