作者: rock <shirock@mail.educities.edu.tw>
日期: 2001/419
#include <bbslib/string_i.h> #include <bbslib/buffer.h>
也可以直接引入 <bbslib.h> , bbslib.h 會將引入所有 bbslib 的 header files 。
buffer 實作了 string_i 介面的內容,可將一般的字元陣列 (字串) 變成符合 string_i 介面的物件。
buffer_t* buffer_construct(buffer_t*b, char*bufptr);
void buffer_destroy(buffer_t*b);
construct/destroy a buffer object.
char* buffer_text(const buffer_t*b);
int buffer_length(const buffer_t*b);
Return the pointer/length of the content (string).
char* buffer_strcpy(buffer_t*b, const char*src);
char* buffer_strncpy(buffer_t*b, const char*src, int n);
char* buffer_strcat(buffer_t*b, const char*src);
char* buffer_strncat(buffer_t*b, const char*src, int n);
See also strcpy(), strncpy(), strcat(), strncat().
The TIP Project
Short URL: http://fbtip.tsx.org/
Group: http://groups.yahoo.com/list/firebird-tip
Mailing list: firebird-tip@yahoogroups.com