|
[XML-DEV Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] NULL in C (was RE: Why would MS want to make XML break on UNI
This is going off-topic a bit, but two ways to represent 0C in C strings are: - Do not use *char but operate on the byte level. Since C let's you work on a string even if it contains 0C (although not with the standard string libraries, functions and operations), you could return a struct that gives the length and the memory area. Thus 'a0Cb0C0Cd' would become (6, 'a0Cb0C0Cd') - Use an array of strings where every 0C will move to the next item and give length of array. You will need a sentinel at the end for the last 0C. Thus 'a0Cb0C0Cd' would become (4, 'a0C', 'b0C', '0C, 'd0C') So it is doable, but not easy... Best regards Michael
|
PURCHASE STYLUS STUDIO ONLINE TODAY!Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced! Download The World's Best XML IDE!Accelerate XML development with our award-winning XML IDE - Download a free trial today! Subscribe in XML format
|
|||||||||

Cart








