Mercurial > octave-nkf
comparison scripts/plot/private/__tight_eps_bbox__.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 | 5d3a684236b0 |
children |
comparison
equal
deleted
inserted
replaced
17404:5e552cd9315a | 17405:3f0ed69d21c6 |
---|---|
56 unwind_protect | 56 unwind_protect |
57 bbox_replaced = false; | 57 bbox_replaced = false; |
58 looking_for_bbox = true; | 58 looking_for_bbox = true; |
59 while (looking_for_bbox) | 59 while (looking_for_bbox) |
60 current_line = fgetl (fid); | 60 current_line = fgetl (fid); |
61 if (strncmpi (current_line, box_string, numel (box_string))) | 61 if (strncmpi (current_line, box_string, length (box_string))) |
62 line_length = numel (current_line); | 62 line_length = numel (current_line); |
63 num_spaces = line_length - numel (tight_bbox_line); | 63 num_spaces = line_length - numel (tight_bbox_line); |
64 if (numel (current_line) >= numel (tight_bbox_line)) | 64 if (numel (current_line) >= numel (tight_bbox_line)) |
65 new_line = tight_bbox_line; | 65 new_line = tight_bbox_line; |
66 new_line(end+1:numel (current_line)) = " "; | 66 new_line(end+1:numel (current_line)) = " "; |