Changeset 159 for trunk/examples
- Timestamp:
- Jan 30, 2006, 7:18:42 AM (19 years ago)
- Location:
- trunk/examples
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/examples/app-fermi/cee/fermi.c
r124 r159 47 47 48 48 49 data = rpGetString(lib,"input.(temperature).current");49 rpGetString(lib,"input.(temperature).current",&data); 50 50 T = rpConvertDbl(data, "K", &err); 51 51 if (err) { … … 55 55 56 56 57 data = rpGetString(lib,"input.(Ef).current");57 rpGetString(lib,"input.(Ef).current",&data); 58 58 Ef = rpConvertDbl(data, "eV", &err); 59 59 if (err) { -
trunk/examples/c-example/plotc.c
r125 r159 23 23 char strFormula[100]; 24 24 int i; 25 int err = 0; 25 26 26 27 double fx, fy; … … 54 55 55 56 // get the xml that is stored in the rappture library lib 56 if( (xmltext = rpXml(lib)) ) { 57 err = rpXml(lib,&xmltext); 58 if( !err ) { 57 59 if(DEBUG) { 58 60 //printf("XML file content:\n"); 59 61 //printf("%s\n", xmltext); 60 }62 } 61 63 } 62 64 else { … … 66 68 67 69 // get the min 68 xmltext = rpGetString (lib, "input.number(min).current");70 rpGetString (lib, "input.number(min).current",&xmltext); 69 71 70 72 if (! (xmltext) ) { … … 88 90 89 91 // get the max 90 fmax = rpGetDouble(lib,"input.(max).current");92 rpGetDouble(lib,"input.(max).current",&fmax); 91 93 if(DEBUG) { 92 94 printf("max: %f\n", fmax);
Note: See TracChangeset
for help on using the changeset viewer.