/[global]/global/libutil/strmake.c
ViewVC logotype

Diff of /global/libutil/strmake.c

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.8 by shigio, Sat Apr 2 01:27:52 2005 UTC revision 1.9 by shigio, Tue Apr 5 12:58:26 2005 UTC
# Line 50  strmake(p, lim) Line 50  strmake(p, lim)
50          STATIC_STRBUF(sb);          STATIC_STRBUF(sb);
51          const char *c;          const char *c;
52    
53          strbuf_init(sb);          strbuf_clear(sb);
54          for (; *p; p++) {          for (; *p; p++) {
55                  for (c = lim; *c; c++)                  for (c = lim; *c; c++)
56                          if (*p == *c)                          if (*p == *c)
# Line 91  strtrim(p, flag, len) Line 91  strtrim(p, flag, len)
91          STATIC_STRBUF(sb);          STATIC_STRBUF(sb);
92          int cut_off = -1;          int cut_off = -1;
93    
94          strbuf_init(sb);          strbuf_clear(sb);
95          /*          /*
96           * Delete blanks of the head.           * Delete blanks of the head.
97           */           */

Legend:
Removed from v.1.8  
changed lines
  Added in v.1.9

savannah-hackers-public@gnu.org
ViewVC Help
Powered by ViewVC 1.1.26