This section describes how to create a local application called CAPS.EXE. This application converts lines sent from ESL to uppercase and echoes them back to ESL.
Source code for CAPS.C:
/*
* CAPS.C
*
* Echo lines back to EASEL, converting
* lowercase characters to uppercase.
*/
#include <stdio.h>
#include <string.h>
#include "localapp.h"
#define LINEBUF_SIZE 256
EslMain()
{
char linebuf[LINEBUF_SIZE];
for (;;) {
/*Read a line from EASEL*/
GetLine(linebuf, LINEBUF_SIZE);
/*Convert it to uppercase*/
strupr(linebuf);
/*Send it back to EASEL*/
PutString(linebuf);
}
return(0);
}