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

Converts an leChar style buffer to a C-style string

C
LIB_EXPORT uint32_t leStringUtils_ToCStr(
    const leChar* str, 
    uint32_t strSize, 
    char* buf, 
    uint32_t bufSize
);
Parameters
Parameters 
Description 
const leChar* str 
the source leChar stringthe leChar string to copy 
uint32_t strSize 
the size of the source leChar string 
char* buf 
the destination C string 
uint32_t bufSize 
the size of the destination buffer 
Returns

uint32_t - the number of chars copied

MPLAB® Harmony Graphics Suite