[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

  • To: "Rick Jelliffe" <ricko@a...>,<xml-dev@l...>
  • Subject: NULL in C (was RE: Why would MS want to make XML break on UNIX, Perl, Python, etc ?)
  • From: "Michael Rys" <mrys@m...>
  • Date: Fri, 21 Dec 2001 15:02:04 -0800
  • Thread-index: AcGJ/I2kPfLyv6jwSEuy0kdqdvoZdwAdeLBw
  • Thread-topic: NULL in C (was RE: Why would MS want to make XML break on UNIX, Perl, Python, etc ?)

null in c
This is going off-topic a bit, but two ways to represent 0C in C strings

- 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

Thus 'a0Cb0C0Cd' would become (4, 'a0C', 'b0C', '0C, 'd0C')

So it is doable, but not easy...

Best regards


Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
First Name
Last Name
Subscribe in XML format
RSS 2.0
Atom 0.3

Stylus Studio has published XML-DEV in RSS and ATOM formats, enabling users to easily subcribe to the list from their preferred news reader application.

Stylus Studio Sponsored Links are added links designed to provide related and additional information to the visitors of this website. they were not included by the author in the initial post. To view the content without the Sponsor Links please click here.

Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.