This could say just `return (i < n || src[j] != 0);` right?

Also I would declare `i` and `j` together at the top.