Archive: How do you represent \00 in a string?


How do you represent \00 in a string?
How do you use a null value in a string. \00

Thanks


What are you trying to do?


I was trying to use the system plugin to execute the createprocess api with environment variables. To use multiple environment variables you pass a string the variable and value delimited by 3 null characters.


Example:
System::Call '*(&t6 "aa=bb", &t8 "qqq=www", &i1 0) i.r1'
will return block you need to r1. Don't forget to change size specified at &t parameters to actual size of your strings + 1.
System::Free after all of course.