EXAMPLE

/* the builtin string construct and destruct functions: */

APTR __asm consfunc(_a2 APTR pool,_a1 char *str)
{
   char *new;
   if (new=AllocPooled(pool,strlen(str)+1))
      strcpy(new,str);
   return(new);
}

VOID __asm desfunc(_a2 APTR pool,_a1 char *entry)
{
   FreePooled(pool,entry,strlen(entry)+1);
}

/* for more sophisticated hooks see demo program WbMan.c */