Mercurial > octave-nkf
comparison scripts/plot/__gnuplot_drawnow__.m @ 17405:3f0ed69d21c6
Replace unnecessary instances of strncmp with strcmp.
* scripts/optimization/optimget.m, scripts/plot/__gnuplot_drawnow__.m,
scripts/plot/fill.m, scripts/plot/private/__go_draw_axes__.m,
scripts/plot/private/__pie__.m, scripts/plot/private/__print_parse_opts__.m,
scripts/plot/private/__quiver__.m, scripts/plot/private/__tight_eps_bbox__.m,
scripts/plot/stairs.m, scripts/plot/uigetfile.m, scripts/strings/strsplit.m,
scripts/strings/validatestring.m: Replace unnecessary instances of strncmp with
strcmp.
author | Rik <rik@octave.org> |
---|---|
date | Tue, 10 Sep 2013 18:31:39 -0700 |
parents | 09543e9c8f40 |
children |
comparison
equal
deleted
inserted
replaced
17404:5e552cd9315a | 17405:3f0ed69d21c6 |
---|---|
223 case "dxf" | 223 case "dxf" |
224 size_str = ""; | 224 size_str = ""; |
225 otherwise | 225 otherwise |
226 size_str = ""; | 226 size_str = ""; |
227 endswitch | 227 endswitch |
228 if ((strncmpi (term, "x11", 3) | 228 if ((strcmp (term, "x11") |
229 && __gnuplot_has_feature__ ("x11_figure_position")) | 229 && __gnuplot_has_feature__ ("x11_figure_position")) |
230 || (strcmpi (term, "windows") | 230 || (strcmpi (term, "windows") |
231 && __gnuplot_has_feature__ ("windows_figure_position"))) | 231 && __gnuplot_has_feature__ ("windows_figure_position"))) |
232 ## X11/Windows allows the window to be positioned as well. | 232 ## X11/Windows allows the window to be positioned as well. |
233 units = get (0, "units"); | 233 units = get (0, "units"); |