Listing 1

/*
 * write the definition for size_t
 */
#include <stdio.h>

main()
   {
   printf("typedef unsigned%s size_t;\n",
      sizeof(sizeof(int)) == sizeof(int) ? "" : "long");
   }