Yeah I tried including <string.h>, but I got a warning saying its depricated, so I just made my own strlen code.Not to mentioon that size = strlen(add) does the same thing, is most likely faster, and doesn't require any extra "tmp" variable [in this function at least].