Memcopy question

Started by Frank Brübach, June 12, 2024, 04:41:12 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

Frank Brübach

Hello Charles..


Does a similar function to memcopy or memmove for oxygen exist?

' memcpy -> does exist a similar function for oxygen?
'

uses console

Function myunicode(WString chi) As Integer
   WString mcc = SPACE(20)
  'memcpy STRPTR(mcc), STRPTR(chi), 20
  Return asc(left(mcc,1))
End Function

int myval
myval = myunicode("€")

Print myval

'print "ok"
wait


Charles Pegge

Yes, in o2 its called copy

copy dest_addr, src_addr, byte_count