What is the equivalent of function 'print_string_list' in C#

  • Thread starter Thread starter BuddyWork
  • Start date Start date
B

BuddyWork

Hello can someone let me know how to convert a INTPTR (which is a
pointer to a C string array, each string is null terminated and there
is a double null terminator at the end which states the end of the
pointer).
 
Hi,

Is all the data in a consecutive chunk of memory?

If so what you can do is copy it to a byte[] then using a StringBuilder you
iterate in it , when you find a 0 you reached the end of a string and you
just print/do whatever with it and then restart again.

cheers,
 
Back
Top