Changeset 1380 for trunk/packages/vizservers/nanovis/dxReader2.cpp
- Timestamp:
- Apr 4, 2009, 4:49:00 PM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/packages/vizservers/nanovis/dxReader2.cpp
r1325 r1380 35 35 36 36 f = fopen(dxfilename, "w"); 37 fwrite(buf, sizeof(char), nBytes, f); 37 38 ssize_t nWritten; 39 nWritten = fwrite(buf, sizeof(char), nBytes, f); 38 40 fclose(f); 41 if (nWritten != nBytes) { 42 outcome.addError("Can't read %d bytes from file \"%s\"\n", 43 nBytes, dxfilename); 44 return false; 45 } 39 46 40 47 Rappture::DX dxObj(outcome, dxfilename);
Note: See TracChangeset
for help on using the changeset viewer.