Skip to content
This repository has been archived by the owner on Jun 13, 2020. It is now read-only.

How do I cast a u8 pointer into a string? #741

Closed
danharbor95 opened this issue Mar 9, 2016 · 4 comments
Closed

How do I cast a u8 pointer into a string? #741

danharbor95 opened this issue Mar 9, 2016 · 4 comments

Comments

@danharbor95
Copy link

Hello very nice job with the compiler thus far! i have been lurking and it has developed nicely

I was wondering how i would cast a byte or u8 pointer into a string for C compatibility?

@kiljacken
Copy link
Member

Hello! Thanks for showing interest :)

We currently do not have a way to convert between ark strings (pascal style) and c string (zero terminated). We do however have plans for this. If you need them for playing around I could go code up some functions in a bit?

@danharbor95
Copy link
Author

oh ok what are the plans for this feature? and i dont want to make you add in a temporary feature just for me hehe. is there a issue for this feature anywhere

@kiljacken
Copy link
Member

I do not believe we have the plan written down yet, but it belongs in #675. I'll go write up my ideas for the api.

@felixangell
Copy link
Member

I'm interested to see how we will approach this too.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

3 participants