Ignore:
Timestamp:
Aug 24, 2011 7:01:44 PM (11 years ago)
Author:
dkearney
Message:

adding a getFile function for rappture library and fortran bindings so fortran users no longer need to know the length of a string a user provides them as input, before compile time. they can now just dump the string into a file, and read the file as they are probably already used to doing. also fixed a bug in teh Rappture::Buffer dump function where it would correctly open a file pointer, but failed the check to see if the file pointer was opened.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/core/RpBuffer.cc

    r1527 r2408  
    172172    FILE *f;
    173173    f = fopen(filePath, "wb");
    174     if (f != NULL) {
     174    if (f == NULL) {
    175175        status.addError("can't open \"%s\": %s\n", filePath, strerror(errno));
    176176        return false;
Note: See TracChangeset for help on using the changeset viewer.