<html><head><meta name="color-scheme" content="light dark"></head><body><pre style="word-wrap: break-word; white-space: pre-wrap;">\input cap_c
\magnification 1440


\BeginC
// this is a short demo program
/* both kinds of comment are recognised */

// some compiler directives
#pragma hdrfile "hello.sym"
#include &lt;stdio.h&gt;
#include &lt;sys/stat.h&gt;
#pragma hdrstop

void hello(int n)
{
  // obviously, keywords inside comments or
  // texts are not emphasized:
  // void return switch for double
  for (; n&gt;0; n--)
    printf("Hello, void world!\n");
    /*     ^ isn't that beautiful?   */
}

float silly_funct()
{
  #define max(a,b)   ((a)&gt;(b))?(a):(b)
  printf("%7.4lf\n", max(3.14, 012));
}

// words not recognised as keywords are considered
// to be identifiers and are typeset in italic
void main()
{
  int n;
  hello(0x1C);
  silly_funct();
}
\EndC


\bye
</pre></body></html>