You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When I declare for example: array: ["ab" "cd" "ef"]
what type should I put into the function spec?
According to the docs it should be pointer! [c-string!] but it's invalid to have pointer to pointer, so it errors out. Empirically found that it's actually int-ptr!.
The text was updated successfully, but these errors were encountered:
There are no support (yet) for pointer of pointer, so pointer! [integer!] is the only choice for now. c-string! is a pointer type, it's equivalent to pointer! [byte!] with the extra constraint that the buffer is NUL-terminated.
When I declare for example:
array: ["ab" "cd" "ef"]
what type should I put into the function spec?
According to the docs it should be
pointer! [c-string!]
but it's invalid to have pointer to pointer, so it errors out. Empirically found that it's actuallyint-ptr!
.The text was updated successfully, but these errors were encountered: