SC_String_NewWithLength()
Creates a string instance, which is a subset of the given array of chars.
Synopsis:
#include <scoreloop/sc_string.h>
SC_Error_t SC_String_NewWithLength(SC_String_h *pSelf, const char *text, unsigned int length)
Arguments:
- pSelf
-
Opaque handle of the string instance created.
- text
-
A pointer to the UTF-8 encoded char data.
- length
-
Number of chars to copy.
Library:
libscoreloopcoreDescription:
This method creates an instance of SC_String, copying the length from a given buffer. The string instance is created with a reference count equal to 1.
Returns:
SC_Error_t A return code (a value of SC_OK indicates success, any other value indicates an error).