I\'m trying to convert a FOR loop from C to Delphi, but I\'m with some doubts:
I know this code in C:
for (i = 0; i < mb->s
You cannot use a for in delphi to do this because the variable used to iterate cannot be modified.
So this code
for (i = 0; i < mb->size; i+= mb->data_size)
can be written using a while
i:=0; while (i<mb.size) do begin // do something Inc(i, mb.data_size); end;