title: Are there any legitimate use-cases for "goto" in a language that supports loops and functions?
body: <p>I've long been under the impression that <code>goto</code> should never be used if possible.</p>
  <p>However, while perusing libavcodec (which is written in C) the other day, I was surprised to notice multiple uses of it.</p>
  <p>Is it ever advantageous to use <code>goto</code> in a language that supports loops and functions?  If so, why?   Please provide a concrete example that clearly justifies the use of a <code>goto</code>.</p>