CStyle Byte Ptr String -> BMX String

BlitzMax Forums/BlitzMax Programming/CStyle Byte Ptr String -> BMX String

The forum is locked. These are the original blitzbasic.com forums, kept so they can still be read. No new topics, replies or edits can be made here. To join in, head over to the Blitz3D+ forums.

Hi,

This could sound like a stupid question but can anyone tell me how to convert a CStyle String (Null term Byte Ptr) into a BMX string. Surely there is a more efficient way then parsing every char until ~0 (null term) is found. If there was a way of quickly finding the null char then a mem copy could put it directly into a BMX string of the same length.

This sounds so neccesary that it surely has been solved.

Sorry if this has been posted before, im aware that that would be irritating.
Thanks.