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)
  2. char* toCString(Buffer!(char) str)
    class StringC
    static
    char*
    toCString
    (
    ref Buffer!(char) str
    )

Parameters

str Buffer!(char)

input string buffer

Return Value

Type: char*

C compatible (null terminated) string

Meta