my implementation of strjoinc.c