1 /* Sample command procedure library for a plug-in. */
3 /* You have to include the Tcl headers, of course. */
6 /* Define the functions that implement your commands as required by Tcl */
8 int extra_text (ClientData clientData,
10 int argc, char *argv[]);
12 /* Here you actually do whatever you want, like calling your target
13 libraries etc. Here we just return a string. */
16 extra_text (ClientData clientData,
18 int argc, char *argv[])
20 interp->result = "\nThis is a sample plug-in\n";
24 /* Initialization function required in Tcl libraries. */
27 Rhabout_Init (Tcl_Interp *interp)
29 /* Register your command as a Tcl command with this interpreter. */
30 Tcl_CreateCommand (interp, "rhabout_extra_text", extra_text,
31 (ClientData) NULL, (Tcl_CmdDeleteProc *) NULL);