Hello StackOverflowers,
I read somewhere that C# string are not null terminated. M'fine ! But I'd like to know if the method :
byte[] myBytes = Encoding.ASCII.GetBytes(myString);
add a null termination character to the end of the array or if I must do it manually ? (the C system which will use this array does need it).
If manual, I guess the way would be :
byte[] myBytes = Encoding.ASCII.GetBytes(myString + '\0');
The data is meant to be ASCII, no worries about encoding.