title: What can I use instead of #include<graphics.h> in Mac Os?
body: <p>The question is the same above.</p>
  
  <p>Since when I compile my C program it gives me a fatal error (graphics.h not found), I was wondering what I can use instead of it.</p>
  
  <p>Consider that I DO NOT WANT links to other sites or whatever, because I'm a newbie and I wouldn't understand.</p>
  
  <p>I just need the command to type, in order to make it work. If I have to download a library then it's fine, provided you guide me all through the process.</p>
  
  <p>Thanks.</p>
  
  <p><strong>Here is what I am trying to compile</strong></p>
  
  <p>A code to create a smiley.</p>
  
  <pre><code>#include &lt;graphics&gt;
  
  int main(void)
  {
  int midX, midY,
  leftEyeX, rightEyeX, eyeY,
  noseX, noseY,
  headRadius,
  eyeNoseRadius,
  smileRadius,
  stepX, stepY,
  
  initwindow(500, 400, "Happy Face - press key to close", 200, 150);
  
  midX = getmaxx() / 2;
  midY = getmaxy() / 2;
  headRadius = getmaxy() / 4;
  circle(midX, midY, headRadius);
  
  stepX = headRadius / 4;
  stepY = stepX;
  leftEyeX = midX - stepX;
  eyeY = midY - stepY;
  eyeNoseRadius = headRadius / 10;
  circle(leftEyeX, eyeY, eyeNoseRadius);
  circle(rightEyeX, eyeY, eyeNoseRadius);
  
  noseX = midX;
  noseY = midY + stepY;
  circle(noseX, noseY, eyeNoseRadius);
  
  smileRadius = (int)(0.75*headRadius + 0.5);
  arc(midX, midY, 210, 330, smileRadius);
  
  getch();
  closegraph();
  
  return(0);
  
  }
  </code></pre>