title: How to load gif using STB in C++
body: <p>I'm using STB to load png and other images.
  <a href="https://github.com/nothings/stb/blob/master/stb_image.h" rel="nofollow noreferrer">https://github.com/nothings/stb/blob/master/stb_image.h</a>
  It works with static images.</p>
  <p>But I don't know how to load animaged gif.
  Comment in STB points me to <a href="https://gist.github.com/urraka/685d9a6340b26b830d49" rel="nofollow noreferrer">https://gist.github.com/urraka/685d9a6340b26b830d49</a>
  But it no longer works.
  And comments in there are point back to STB to function called <code>stbi_load_gif_from_memory</code> .</p>
  <p>And STB have function <code>stbi_load_gif_from_memory</code>, but there are no comments at all.
  And calling <code>stbi_load_gif_from_memory</code> isn't obvious to me.</p>
  <p>Can somebody show sample code how to use it ?</p>