title: Check GCC version in runtime
body: <p>I need to find out the available (installed in the system) GCC version (Major and minor) inside the execution of a c program (in runtime). Meaning, programatically extract the version of the available gcc (same as if I was in a shell and typed gcc --version, but in a c program).</p>
  
  <p>The <code>__GNUC__</code> and <code>__GNUC_MINOR__</code> are only useful in compile time and I've found the <code>gnu_get_libc_version()</code> function from <code>gnu/libc_version.h</code>, but it only gets me the libc version and I need the GCC version. If there is something similar for GCC it would be great...</p>
  
  <p>I would really like to avoid calling a shell command to do this.</p>