docs: aio: Document unix domain datagram support
[jimtcl.git] / examples.ext / helloworld.c
blob371a23d0ca5a72f9e09829e71f149c9679ca188a
1 /*
2 * hello.c -- A minimal Jim C extension.
3 */
4 #include <jim.h>
6 static int
7 Hello_Cmd(Jim_Interp *interp, int objc, Jim_Obj *const objv[])
9 Jim_SetResultString(interp, "Hello, World!", -1);
10 return JIM_OK;
14 * Jim_helloworldInit -- Called when Jim loads your extension.
16 * Note that the name *must* correspond exactly to the name of the extension:
17 * Jim_<extname>Init
19 int
20 Jim_helloworldInit(Jim_Interp *interp)
22 Jim_CreateCommand(interp, "hello", Hello_Cmd, NULL, NULL);
23 return JIM_OK;