This repository has been archived on 2024-12-16. You can view files and clone it, but cannot push or open issues or pull requests.
CodeBlocksPortable/WATCOM/samples/os2/som/helloc/main.c

18 lines
367 B
C
Raw Permalink Normal View History

#include <hello.h>
int main( int argc, char **argv )
{
/* Declare a variable to point to an instance of Hello */
Hello *obj;
/* Create an instance of the Hello class */
obj = HelloNew();
/* Execute the "sayHello" method */
_sayHello( obj, somGetGlobalEnvironment() );
/* Free the instance: */
_somFree( obj );
return( 0 );
}