Main Page   Modules   Alphabetical List   Data Structures   File List   Data Fields   Globals   Related Pages  

buf.h

Go to the documentation of this file.
00001 
00003 /* GtkSQL -- an interactive graphical query tool for PostgreSQL
00004  * Copyright (C) 2002 Darryl Luff
00005  *
00006  * This program is free software; you can redistribute it and/or modify
00007  * it under the terms of the GNU General Public License as published by
00008  * the Free Software Foundation; either version 2 of the License, or
00009  * (at your option) any later version.
00010  *
00011  * This program is distributed in the hope that it will be useful,
00012  * but WITHOUT ANY WARRANTY; without even the implied warranty of
00013  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
00014  * GNU General Public License for more details.
00015  *
00016  * You should have received a copy of the GNU General Public License
00017  * along with this program; if not, write to the Free Software
00018  * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
00019  */
00020 
00021 #ifndef __BUF_H
00022 #define __BUF_H
00023 
00025 typedef struct _a_buf {
00026     unsigned char *b_dat;   
00027     unsigned int b_len;     
00028 } ABuf;
00029 
00031 ABuf *buf_new(unsigned int len);
00033 ABuf *buf_free(ABuf * buf);
00035 ABuf *buf_check(ABuf * buf, unsigned int len);
00037 ABuf *buf_strcat(ABuf * buf, char *s);
00039 ABuf *buf_strcpy(ABuf * buf, char *s);
00041 ABuf *buf_str_shrinkbyone(ABuf * buf);
00043 ABuf *buf_terminate(ABuf * buf);
00044 
00045 #endif

Generated on Sun May 9 19:19:15 2004 for GtkSQL by doxygen1.2.18