#include <string.h>

#include <hp48/object.h>
#include <hp48/core.h>

int main (int argc, char *argv[])
{
   char *s 	= "Hello, World!";
   int   len	= strlen(s);

   hp_object *o = sys_malloc(2*len+10);

   if(!o) {
	exit(-1);
   }

   o->prolog = 0x02A2C;
   o->_hide.string.length = len*2 + 5;
   memcpy(o->_hide.string.body, s, len);
 
   sys_exit(o);
}




syntax highlighted by Code2HTML, v. 0.9.1