Re: [hackers] sbase: od: properly concatenate multiple file arguments

From: Greg Reagle <greg.reagle_AT_umbc.edu>
Date: Fri, 2 Oct 2015 11:16:24 -0400

On 10/02/2015 11:03 AM, FRIGN wrote:
> Also:
> - off_t addr;
> + static off_t addr = 0;
>
> please just keep the initialization inside the for-loop.
> It's a slightly better style than setting the variable
> directly at the declaration block.

But I don't want it initialized every time the for loop is entered.
That's why I made it static. It needs to preserve its value between calls.
Received on Fri Oct 02 2015 - 17:16:24 CEST

This archive was generated by hypermail 2.3.0 : Fri Oct 02 2015 - 17:24:11 CEST