title: Implementation of ceil function in C
body: <p>I have two questions regarding <code>ceil()</code> function..</p>
  
  <ol>
  <li><p>The <code>ceil()</code> function is implemented in C. If I use <code>ceil(3/2)</code>, it works fine. But when I use <code>ceil(count/2)</code>, if value of count is 3, then it gives compile time error.</p>
  
  <blockquote>
    <p>/tmp/ccA4Yj7p.o(.text+0x364): In function <code>FrontBackSplit': : undefined reference to</code>ceil' collect2: ld returned 1 exit status</p>
  </blockquote>
  
  <p>How to use the ceil function in second case? Please suggest.</p></li>
  <li><p>How can I implement my own ceil function in C. Please give some basic guidelines. </p></li>
  </ol>
  
  <p>Thanks.</p>