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

Gets the line count for a C-style string

C
LIB_EXPORT uint32_t leStringUtils_GetLineCountCStr(
    const char* str
);
Parameters
Parameters 
Description 
const char* str 
the source C string to analyze 
Returns

uint32_t - the number of lines in the string

MPLAB® Harmony Graphics Suite