StringC.toCString

Converts str to a C string, that is, if a null terminator is not present then it is appended to the original string. A pointer to the string is returned.

  1. char* toCString(mstring str)
    class StringC
    static
    char*
    toCString
    ()
  2. char* toCString(Buffer!(char) str)

Parameters

str mstring

input string

Return Value

Type: char*

C compatible (null terminated) string

Meta