![]() |
![]() |
![]() |
![]() |
![]() |
|
To iterate over all flag characters, you can use the following for
statement, which increments a counter,
string_counter:
for (string_counter = 1;
argument_array[argument_counter][string_counter];
++string_counter) ...
To understand how this if statement does its job, you first note
that the value of the expression
argument_array[argument_counter][string_character] is an ordinary character
until you reach the end of the character string, whereupon the value is the
null character, an all-0 byte, which terminates the iteration.