kolibrios-gitea/programs/cmm/examples/console.c
Kirill Lipatov (Leency) 5674a7aa14 fix console.h, add console example
git-svn-id: svn://kolibrios.org@6685 a494cfbc-eb01-0410-851d-a64ba20cac60
2016-11-07 17:49:22 +00:00

19 lines
326 B
C

/*
* Console example in C--
*/
#define MEMSIZE 4096*10
#include "../lib/obj/console.h"
void main()
{
load_dll(libConsole, #con_init, 0);
con_init stdcall (-1, -1, -1, -1, "Hello");
con_set_flags stdcall (0x1F);
con_write_string stdcall ("Console test", 12);
con_exit stdcall (0);
ExitProcess();
}