split function implementation in C (read description, minor 🐞)

preview_player
Показать описание
. 🐞The strlcpy must be nested inside the if of course. strlcpy just returns when given NULL ptr as input, but nonetheless is a bad design implementatin

TL;DR
You should never trust internet people lol

Code

typedef struct 🔗s_links🔗
{
} 🔗t_links🔗
Рекомендации по теме
Комментарии
Автор

Is it that important to start tokens at 0 since on the next line you are assigning its value to a return from a function?

meteistobem
Автор

this doesn't work for multibyte strings

volt_inc