If a function is part of the loop-test in a FOR loop, is that function called on every iteration of the loop or only the first iteration to setup the loop.
e.g.
for (i = 0; i < strlen(someString); i++) {
// Do Something
}
Is it better form to define a variable before the loop, whose value is the string length?
e.g.
int length = strlen(someString);
for (i = 0; i < length; i++) {
// Do Something
}