Slacker News Slacker News logo featuring a lazy sloth with a folded newspaper hat
  • top
  • new
  • show
  • ask
  • jobs
Library

Comment by oneeyedpigeon

10 years ago

How would you rewrite it? Would you use a local variable for the result from strlen(), for example?

1 comment

oneeyedpigeon

Reply

quickben  10 years ago

Basically. The compiler will optimize it anyways in the end.

Slacker News

Product

  • API Reference
  • Hacker News RSS
  • Source on GitHub

Community

  • Support Ukraine
  • Equal Justice Initiative
  • GiveWell Charities