Is there a similar function in the GNU linux source code that I could include instead? ( One that is much less buggy than strtok()? )
glibc includes strsep().
Looking over what strsep() does I don't see it's so complicated that you can't roll your own.
