Quote:
Originally posted by mart_man00
quzah, i know you know alot more about this than me, but im not seeing it now. why should you copy a single char at a time when you could do the whole thing? and with my "error checking part", why should i declare anything if theres a error that will stop the function from working? and yeah, it does look really bad, how would you do it?
It's already been done how I'd do it, with the exception of returning it. You can use a loop, you don't have to. You can use strncpy if you like.