If you use the array-form of sep, you can use sizeof(sep) instead of strlen(sep) + 1; this moves the computation from run-time to compile-time, which is always good.