/[global]/global/libutil/strbuf.h
ViewVC logotype

Diff of /global/libutil/strbuf.h

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

revision 1.9 by shigio, Sun Apr 3 10:29:53 2005 UTC revision 1.10 by shigio, Tue Apr 5 12:58:26 2005 UTC
# Line 62  typedef struct _strbuf { Line 62  typedef struct _strbuf {
62   * This macro is used for static string buffer which is suitable for   * This macro is used for static string buffer which is suitable for
63   * work area and(or) return value of function. The area allocated once   * work area and(or) return value of function. The area allocated once
64   * is repeatedly used though the area is never released.   * is repeatedly used though the area is never released.
65   * You must call strbuf_init(sb) every time before using.   * You must call strbuf_clear(sb) every time before using.
66   * You must not call strbuf_close(sb) for it.   * You must not call strbuf_close(sb) for it.
67   *   *
68   * Usage:   * Usage:
69   *      function(...) {   *      function(...) {
70   *              STATIC_STRBUF(sb);   *              STATIC_STRBUF(sb);
71   *   *
72   *              strbuf_init(sb);   *              strbuf_clear(sb);
73   *              ...   *              ...
74   *              strbuf_puts(sb, "xxxxx");   *              strbuf_puts(sb, "xxxxx");
75   *              ...   *              ...
# Line 113  void strbuf_dump(char *); Line 113  void strbuf_dump(char *);
113  #endif  #endif
114  void __strbuf_expandbuf(STRBUF *, int);  void __strbuf_expandbuf(STRBUF *, int);
115  STRBUF *strbuf_open(int);  STRBUF *strbuf_open(int);
116  void strbuf_init(STRBUF *);  void strbuf_clear(STRBUF *);
117  void strbuf_nputs(STRBUF *, const char *, int);  void strbuf_nputs(STRBUF *, const char *, int);
118  void strbuf_puts(STRBUF *, const char *);  void strbuf_puts(STRBUF *, const char *);
119  void strbuf_putn(STRBUF *, int);  void strbuf_putn(STRBUF *, int);

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

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