Multiline String Format

When storing multiline strings, separate lines with a carriage return/line feed pair (ASCII 13/ASCII 10 pair). Although applications vary in their requirements for new line symbols (carriage return only, line feed only, or both), it is generally easier to strip out extra characters than to insert extra ones. Inserting characters might require reallocating memory blocks or pre-scanning the chunk before allocating memory for it.


[Back: NULL-Terminated, Byte Size Prefix String (BZSTR) Series]
[Next: Choosing a Storage Method]