Changeset 111 for trunk/lib/Gnuplot.cc
- Timestamp:
- Jun 28, 2006, 5:18:42 PM (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/lib/Gnuplot.cc
r108 r111 77 77 78 78 79 intGnuplot::command(const std::string& cmdstr)79 void Gnuplot::command(const std::string& cmdstr) 80 80 { 81 int r =fputs(cmdstr.c_str(),pipe_);82 if ( !r &&*(cmdstr.rbegin())!='\n')83 r=fputc('\n',pipe_);84 return (r ? r : fflush(pipe_));81 fputs(cmdstr.c_str(),pipe_); 82 if (*(cmdstr.rbegin())!='\n') 83 fputc('\n',pipe_); 84 fflush(pipe_); 85 85 } 86 86
Note: See TracChangeset
for help on using the changeset viewer.