Several benchmarks for C interop (#2659)

This commit is contained in:
LepilkinaElena
2019-02-19 10:04:25 +03:00
committed by GitHub
parent e8d6a2a5f1
commit 904350d42e
19 changed files with 766 additions and 4 deletions
@@ -21,7 +21,7 @@ import kotlinx.cinterop.*
import libcurl.*
actual fun readFile(fileName: String): String {
val file = fopen(fileName, "r") ?: error("Cannot write file '$fileName'")
val file = fopen(fileName, "r") ?: error("Cannot read file '$fileName'")
var buffer = ByteArray(1024)
var text = StringBuilder()
try {