SYShauptschleife

Top  Previous  Next

Loop for the command line.

With this routine a loop is defined which runs as long as, until a word is given in the command line which corresponds to the word endName. All the other inputs are passed on as normal orders. The word which corresponds endName is not explained any more in the loop. But the loop is finished and only then the input with the word endName is evaluated. With this routine, e.g., the loop is defined which waits for the fact that the word EOJ is given to finish then the programme. Also the Kontollstrukturen, e.g., c_while are implemented with this routine.

Parametre

root (PROOT) [IN]

Act on the open data bank.

endName (char *) [IN]

With endName a sign chain which determines the end of the loop is given. As soon as a word is given in the command line which corresponds endName, this loop breaks off. With the comparison it is respected to capitalisation and use of small letters.

_sysModule [] (void *) [IN]

_sysModule may also contain the value ZERO.

readToEOF (int) [IN]

Possible value are TRUE and FALSE.

Result

(long int) [OUT]

As a return this routine delivers the value which the last has delivered explained to routine in this loop.

Declaration

#include "system.h"

 

long int DLLENTRY SYShauptschleife (

PROOT root,

char * endName,

void * _sysModule [],

int readToEOF

);