title: How to return the value of SELECT COUNT in C
body: <p>Well I was wondering if it is possible to use the result of count counts in a printf.</p>
  
  <p>I have a code that does the count in mysql.</p>
  
  <pre><code>void count_sql(void) {
  
      if (SQL_ENTER == SQL_ROWS(mysql, "SELECT COUNT(*) FROM `login_client` WHERE `ID` &lt; DATE(NOW() + INTERVAL 1 DAY)"))
          sqldebug(mysql);
  
      printf("Counted users\n");
      return;
  }
  </code></pre>
  
  <p>I wanted to return the count value by leaving the message as below for example:</p>
  
  <p><strong>printf("150 users were found\n");</strong></p>