Equivalent CHAR

BlitzMax Forums/BlitzMax Beginners Area/Equivalent CHAR

Hi all, as the title says

C:
CHAR buffer[32];

Bmax?
buffer:Byte[32] '< don't work as expected
buffer:Byte Ptr=MemAlloc(32) '< same as above

Only way I could duplicate it is mess the memory up completely by using.
MemCopy VarPtr(buffer), "Some Text", Len("Some Text")

Then the API function I passed to read it fine, but obviously then BMax fell over eventually.