Gah! I've coded for about a week when I realize that on the project where I work, strncpy is forbidden. I must use snprintf instead. But I don't really understand how.
For example:
strncpy(dest,10,src);
snprintf(dest,sizeof(dest),"%s",src);
This copies the entire "src", how do I limit it to 10 characters?