Revision: | 1.1 |
Committed: | Tue Oct 16 22:48:16 2007 UTC (15 years, 11 months ago) by arta |
Content type: | text/plain |
Branch: | MAIN |
CVS Tags: | Ver_6-0, Ver_6-1, Ver_6-2, Ver_6-3, Ver_6-4, Ver_5-6, Ver_LATEST, NetDRMS_Ver_8-12, NewTree01_cp05_JSOC, Ver_9-41, Ver_DRMSLATEST, NetDRMS_Ver_2-0b, NetDRMS_Ver_2-0a, Ver_9-5, Ver_9-4, Ver_9-3, Ver_9-2, Ver_9-1, Ver_9-0, NetDRMS_Ver_1-1, NetDRMS_Ver_1-0, NetDRMS_Ver_2-2, NetDRMS_Ver_2-3, NetDRMS_Ver_2-0, NetDRMS_Ver_2-1, NetDRMS_Ver_2-6, NetDRMS_Ver_2-7, NetDRMS_Ver_2-4, NetDRMS_Ver_2-5, NetDRMS_Ver_LATEST, NetDRMS_Ver_8-8, NetDRMS_Ver_8-10, NetDRMS_Ver_8-11, NetDRMS_Ver_8-4, NetDRMS_Ver_8-5, NetDRMS_Ver_8-6, NetDRMS_Ver_8-7, NetDRMS_Ver_8-0, NetDRMS_Ver_8-1, NetDRMS_Ver_8-2, NetDRMS_Ver_8-3, NewTree01_cp08_JSOC, Ver_4-6, Ver_4-7, Ver_4-4, Ver_4-5, Ver_4-2, Ver_4-3, Ver_4-0, Ver_4-1, Ver_8-8, NetDRMS_Ver_2-0b1, Ver_8-2, Ver_8-3, Ver_8-0, Ver_8-1, Ver_8-6, Ver_8-7, Ver_8-4, Ver_8-5, Ver_5-3, Ver_5-2, Ver_5-1, Ver_5-0, Ver_5-7, Ver_7-0, Ver_5-5, Ver_5-9, Ver_5-8, Ver_8-10, Ver_8-11, Ver_8-12, NetDRMS_Ver_6-4, NetDRMS_Ver_0-7, NetDRMS_Ver_6-2, NetDRMS_Ver_6-3, NetDRMS_Ver_6-0, NetDRMS_Ver_6-1, NetDRMS_Ver_0-8, NetDRMS_Ver_0-9, Ver_5-14, Ver_5-13, Ver_5-12, Ver_5-11, Ver_5-10, NetDRMS_Ver_2-0a2, NetDRMS_Ver_2-0a1, NewTree01_cp07_JSOC, NetDRMS_Ver_9-9, NetDRMS_Ver_9-41, NetDRMS_Ver_9-1, NetDRMS_Ver_9-0, NetDRMS_Ver_9-3, NetDRMS_Ver_9-2, NetDRMS_Ver_9-5, NetDRMS_Ver_9-4, NewTree01_cp06_JSOC, Ver_7-1, NewTree01_cp09_JSOC, NetDRMS_Ver_7-1, NetDRMS_Ver_7-0, HEAD |
Log Message: | Move JSOC/src/base to JSOC/base and JSOC/src/proj to JSOC/proj. 86 JSOC/src. |
# | Content |
---|---|
1 | /* |
2 | * hello_world.c ~jsoc/src/pipeline/example |
3 | * |
4 | * An extremely simple module... |
5 | * |
6 | * Echoes the message specified in the optional "msg" argument to stdout. |
7 | * |
8 | * Responsible: Rick Bogart RBogart@solar.stanford.edu |
9 | * |
10 | * Usage: |
11 | * hello_world [msg= ] |
12 | * |
13 | * Parameters: (type default description) |
14 | * msg String "Hello, world" a string to be written |
15 | * |
16 | * Bugs: |
17 | * The module is of no particular use, and exists merely for heuristic |
18 | * purposes. |
19 | * |
20 | * Revision history is at end of file. |
21 | */ |
22 | /* required .h inclusion */ |
23 | #include <jsoc_main.h> |
24 | #include <stdio.h> |
25 | /* module identifier */ |
26 | char *module_name = "hello_world"; |
27 | char *version_id = "1.5"; |
28 | /* arguments list */ |
29 | ModuleArgs_t module_args[] = { |
30 | {ARG_STRING, "msg", "Hello, world!", "message to be echoed"}, |
31 | {} |
32 | }; |
33 | |
34 | int DoIt () { |
35 | int status; |
36 | |
37 | if (cmdparams_exists (&cmdparams, "V")) |
38 | printf ("output of module %s version %s:\n\n", module_name, version_id); |
39 | printf ("%s\n", cmdparams_get_str (&cmdparams, "msg", &status)); |
40 | return (0); |
41 | } |
42 | |
43 | /* |
44 | * Revision History |
45 | * |
46 | * 05.11.14 Rick Bogart created this file |
47 | * 06.09.05 " converted to new module structure |
48 | */ |