strtok probably comes closest to meeting the OPs requirement "As efficiently as possible". To avoid reentrancy issues, you can use strtok_r.
Statistics: Posted by carlk3 — Sun Mar 31, 2024 8:37 pm