Compare two string in a while loop

For example, instead of...

char motInter[] = "1111";

Do this...

strncpy(motInter, "1111");