This function is somewhat simpler to use than strsep(3) in some cases. Signed-off-by: Alejandro Colomar <alx@kernel.org>