Say we have 3 string with free text, I need to merge the strings into a single and be able afterwards to retrieve the 3 string individually.
I know this is not clean at all, but there are some situations where you cannot change the interface. Therefore, I am looking for a “pseudo clean” solution.
I was thinking 2 options:
-choose a separator, escape it on the string and just concatenate them with the sep in the middle.
-choose a separator and bytecode in some way the strings and concatenate them bytecoded.
Thanks in advance.
Typically this is done with a zero seperator, as this can never occur in a C string.
So: