for (int i = 0; i < 100; i++ ) // 100 set arbitrarily and excessively large
Replace the 100 with strlen(myString) and delete the comment.
And you can remove the if test.
for (int i = 0; i < 100; i++ ) // 100 set arbitrarily and excessively large
Replace the 100 with strlen(myString) and delete the comment.
And you can remove the if test.