String pointers

BlitzMax Forums/BlitzMax Programming/String pointers

You are right.
It was only meant as a general idea on how to get around it. Wrapping it into a function that sets the content would be simpler anyway. For example like

Function SetCString(target:byte ptr, in:string)
	Local ts:Byte Ptr= in.toCString()
	MemCopy(target,ts,Len(in)+1)
	MemFree ts
end function