I thought one could declare several variables in a for loop:
for
for (int i = 0, char* ptr = bam; i < 10; i++) { ... }
But I just
If you really need the variables to stay in the scope of the loop you could write
{ char* ptr = bam; for (int i = 0; i < 10; i++) { ... } }
It's a bit ugly, but works.