MPLAB® Harmony Graphics Suite > Graphics Library > Aria Graphics Library > Aria User Interface Library Interface > a) Functions > laString_CreateFromCharBuffer Function
MPLAB® Harmony Graphics Suite
laString_CreateFromCharBuffer Function
C
LIB_EXPORT laString laString_CreateFromCharBuffer(
    const char* chr, 
    GFXU_FontAsset* fnt
);
Parameters
Parameters 
Description 
const char* chr 
pointer to a const char* buffer, can be NULL 
GFXU_FontAsset* fnt 
pointer to a font asset, can be NULL 
Returns

laString - created string object

Remarks

Makes an internal copy of the input buffer for the string object. Caller is responsible for the allocated memory but does not need to preserve the input buffer to maintain the string buffer state. 

Caller must also ensure that the font contains all the glyphs for the string or rendering may not be possible.

MPLAB® Harmony Graphics Suite