Permalink
Switch branches/tags
Nothing to show
Find file
Fetching contributors…
Cannot retrieve contributors at this time
17 lines (12 sloc) 297 Bytes
/**
* Manually converting from a raw C array to an array
*/
main: func {
pointer := [7, 8, 9] as Int*
array := Int[3] new()
memcpy(array data, pointer, array length * Int size)
for(i in 0..array length) {
printf("%d ", array[i])
}
println()
}