Changeset 159 for trunk/examples


Ignore:
Timestamp:
Jan 30, 2006, 7:18:42 AM (19 years ago)
Author:
dkearney
Message:

fixed the c examples for new rappture library c api

Location:
trunk/examples
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/examples/app-fermi/cee/fermi.c

    r124 r159  
    4747
    4848
    49     data = rpGetString(lib,"input.(temperature).current");
     49    rpGetString(lib,"input.(temperature).current",&data);
    5050    T = rpConvertDbl(data, "K", &err);
    5151    if (err) {
     
    5555
    5656
    57     data = rpGetString(lib,"input.(Ef).current");
     57    rpGetString(lib,"input.(Ef).current",&data);
    5858    Ef = rpConvertDbl(data, "eV", &err);
    5959    if (err) {
  • trunk/examples/c-example/plotc.c

    r125 r159  
    2323    char strFormula[100];
    2424    int i;
     25    int err = 0;
    2526
    2627    double fx, fy;
     
    5455
    5556    // get the xml that is stored in the rappture library lib
    56     if( (xmltext = rpXml(lib)) ) {
     57    err = rpXml(lib,&xmltext);
     58    if( !err ) {
    5759        if(DEBUG) {
    5860        //printf("XML file content:\n");
    5961        //printf("%s\n", xmltext);
    60     }
     62        }
    6163    }
    6264    else {
     
    6668
    6769    // get the min
    68     xmltext = rpGetString (lib, "input.number(min).current");
     70    rpGetString (lib, "input.number(min).current",&xmltext);
    6971
    7072    if (! (xmltext) ) {
     
    8890
    8991    // get the max
    90     fmax = rpGetDouble(lib,"input.(max).current");
     92    rpGetDouble(lib,"input.(max).current",&fmax);
    9193    if(DEBUG) {
    9294        printf("max: %f\n", fmax);
Note: See TracChangeset for help on using the changeset viewer.