MPLAB® Harmony Graphics Suite > Graphics Library > Legato Graphics Library > Legato Interface > h) String Functions > leStringUtils_FromCStr Function
MPLAB® Harmony Graphics Suite
leStringUtils_FromCStr Function

Converts a C-style string into a leChar buffer

C
LIB_EXPORT uint32_t leStringUtils_FromCStr(
    const char* str, 
    leChar* buf, 
    uint32_t size
);
Parameters
Parameters 
Description 
const char* str 
the source C-style string 
leChar* buf 
the destination leChar string 
uint32_t size 
the size of the destination string in leChar 
Returns

uint32_t - the number of codepoints copied

MPLAB® Harmony Graphics Suite