Hi Mike,
2010/4/6 m...@watty <[email protected]>: > That will break some code! Sorry about that... Will it break so much code that's it's worth while to take special measures, e.g. make the check optional? > I recommend 255 as Null on microcontrollers / PIC as it's not > typically used as ASCII and returned reading uninitialised eeprom. > > Assuming you want a Null terminated string. > Just because C uses 0 (original Mini-Computers) doesn't make it a good > idea for PIC and JAL. > > I also use 255 for no keypress. Zero *is* NULL according to the ascii defintion and due to the widespread use of C and C++ (despite it's historal background) many people are used to it. So i guess it is a matter of habit... Joep -- You received this message because you are subscribed to the Google Groups "jallib" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/jallib?hl=en.
