title: Regex to match C integer literals
body: <p>I would like to use egrep/grep -E to print out the lines in C source files that contain integer literals (as described <a href="https://www.geeksforgeeks.org/integer-literal-in-c-cpp-prefixes-suffixes/" rel="nofollow noreferrer">here</a>). The following works for the most part, except it matches floats too:</p>
  
  <pre><code>egrep '\b[0-9]+' *.c
  </code></pre>
  
  <p>Any suggestions for how to fix this?</p>