Hi Laslo,

> I agree here. Not only should const be used to at least have a partial
> "contract" for the function parameters (C doesn't offer a lot in this
> regard and it's an easy way to prevent problems),

The contract is respected, the function will not modify the variable
pointed to by the pointer.

> it also allows the
> compiler to optimize the code better.

Could explain what kind of optimization is being prevented here?

Reply via email to