Navigation:  C/C++ Scripting Engine > Sample C/C++ Script Code >

Simple.c

Previous pageReturn to chapter overviewNext page

Prints output to console window using princ()

bar_dot

 

 

#include "Fab3000.h"

 

int main ()

{

 // Enter your C/C++ code <below>

 string_t buffer;

 int nVal = 0;

 for( nVal=0; nVal<10; nVal++ )

 {

         sprintf( buffer, "Hello World -- Line=%d\n", nVal );

         princ( buffer );

 }

 

 return 0;

}