50c3be3fc2
* Access primitive interop array elements and struct fields without `.value` * Simplify C*Var* interop types names
9 lines
208 B
Kotlin
9 lines
208 B
Kotlin
import sysstat.*
|
|
import kotlinx.cinterop.*
|
|
|
|
fun main(args: Array<String>) {
|
|
val statBuf = nativeHeap.alloc<statStruct>()
|
|
val res = stat("/", statBuf.ptr)
|
|
println(res)
|
|
println(statBuf.st_uid)
|
|
} |