You can split a string in C efficiently and without any allocation.
My split function: https://gist.github.com/cacharle/fe5c88acc539ed9347186f69f05ead83
Social links:
Website: https://cacharle.xyz
Github: https://github.com/cacharle
Linkedin: https://www.linkedin.com/in/charles-cabergs-328aa8214/