I\'m parsing 3 values in parallel which are separated with a specific separator.
token1 = strtok_s(str1, separator, &nextToken1);
token2 = strtok_s(str2,
Unfortunately, strtok() ignores empty tokens. Even though you said you wish to avoid doing that, there is no other way but to parse it yourself, using for example strchr() to find the next delimiter and then copying the token to a temporary variable for processing. This way you can handle empty tokens whichever way you please.