#include "RTDS_Startup_decl.h" #include "bLocal.h" /* * FUNCTION FOR PROCEDURE DisplayStar: * ----------------------------------- */ void DisplayStar(short numChar, RTDS_GlobalProcessInfo * RTDS_currentContext) { #include"string.h" char *pMsg; short i; pMsg = malloc(numChar); for (i=0;i<numChar;i++) pMsg[i] = '*'; RTDS_MSG_QUEUE_SEND_TO_ENV(display, numChar, pMsg); }