to CString Array
Начиная с Kotlin: 1.3
fun List<String>.toCStringArray(autofreeScope: AutofreeScope): CPointer<CPointerVar<ByteVar>>
Преобразует этот список строк Kotlin в C-массив C-строк, выделяя память для массива и C-строк в указанном AutofreeScope.
fun Array<String>.toCStringArray(autofreeScope: AutofreeScope): CPointer<CPointerVar<ByteVar>>
Преобразует этот массив строк Kotlin в C-массив C-строк, выделяя память для массива и C-строк в указанном AutofreeScope.
© 2010–2026 JetBrains s.r.o. and Kotlin Programming Language contributors
Licensed under the Apache License, Version 2.0.
https://kotlinlang.org/api/core/kotlin-stdlib/kotlinx.cinterop/to-c-string-array.html