I’m not friendly with C# programming, so
I don’t know what can be replaced for below C# function(method?) in C language:
public string ToAscii(byte[] data)
{
System.Text.ASCIIEncoding decoder = new System.Text.ASCIIEncoding();
return decoder.GetString(data, 0, data.Length);
}
Does anyone have a good idea or clue how to replace the above method in C language?
Use
strcpy: