Overview
| Artifact ID: | 2622e42a10982052225cda97cf7a2814ade95c0f |
|---|---|
| Ticket: | 858493ffffffffffffffffffffffffffffffffff |
| Date: | 2003-12-12 03:03:32 |
| User: | davygrvy |
| Artifact Attached: | 5e47182ad53620aa2f7d81a1e7aaaf162fa8c181 |
| Filename: | bang.c |
| Description: | cause an exception ;) |
Content:
#include <tcl.h>
Tcl_ObjCmdProc BangCmd;
int
BangCmd (ClientData clientData, Tcl_Interp *interp,
int objc, struct Tcl_Obj * const objv[])
{
int *i = 0L;
*i = 20;
return TCL_OK;
}
#undef TCL_STORAGE_CLASS
#define TCL_STORAGE_CLASS DLLEXPORT
EXTERN int
Bang_Init (Tcl_Interp *interp)
{
#ifdef USE_TCL_STUBS
if (Tcl_InitStubs(interp, TCL_VERSION, 0) == NULL) {
return TCL_ERROR;
}
#endif
Tcl_CreateObjCommand(interp, "bang", BangCmd, NULL, NULL);
return TCL_OK;
}