_PutChr( ) API Library Routine Example

The following example uses _PutChr( ) to display all 8-bit characters on the screen.

Visual FoxPro Code

SET LIBRARY TO PUTCHR  

C Code

#include <pro_ext.h>

FAR Example(ParamBlk FAR *parm)
{
   int ch;

   for (ch = 0; ch < 256; ch++)
   {
      _PutChr(ch);
   }
}

FoxInfo myFoxInfo[] = {
   {"PUTCHR", (FPFI) Example, CALLONLOAD, ""},
};
FoxTable _FoxTable = {
   (FoxTable FAR *) 0, sizeof(myFoxInfo)/sizeof(FoxInfo), myFoxInfo
};