Shurikn Posted June 9, 2005 Posted June 9, 2005 How do I create a 0 (or null) terminated string in c#? if(entete.identifier!="JFIF") { return 0; } the string "JFIF" is suposed to be a 5 char string in wich the last char is a 0 (or null) Quote
Administrators PlausiblyDamp Posted June 9, 2005 Administrators Posted June 9, 2005 return "JFIF\0"; Quote Posting Guidelines FAQ Post Formatting Intellectuals solve problems; geniuses prevent them. -- Albert Einstein
Leaders snarfblam Posted June 9, 2005 Leaders Posted June 9, 2005 Depending on what you are doing with the strings, you might find this useful: Default Marshalling for Strings Quote [sIGPIC]e[/sIGPIC]
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.