Changeset 107 for trunk/lib/Gnuplot.cc
- Timestamp:
- Jun 28, 2006, 11:12:38 AM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/lib/Gnuplot.cc
r101 r107 79 79 int Gnuplot::command(const std::string& cmdstr) 80 80 { 81 std::cout << cmdstr << std::endl; 81 82 int r = fputs(cmdstr.c_str(),pipe_); 82 if (*(cmdstr.rbegin())!='\n') 83 fputc('\n',pipe_); 84 fflush(pipe_); 85 return r; 83 if (!r && *(cmdstr.rbegin())!='\n') 84 r=fputc('\n',pipe_); 85 return (r ? r : fflush(pipe_)); 86 86 } 87 87
Note: See TracChangeset
for help on using the changeset viewer.