where does VarPtr point to?

BlitzMax Forums/BlitzMax Programming/where does VarPtr point to?

A string is a string.
It is a special object no array of char like in C nor is a VAR an actual pointer that you can use on arrays like in C. BM is managed and can if needed move and resort data where needed so if you use pointer, always be aware that they will cause you many problems of done within BM or if you rely on "long term aliveness".

If you need array of char, you have to use the above mentioned CString and WString functions and use them.