Main Page   Modules   Compound List   File List   Compound Members   File Members   Related Pages  

tdsstring.h

00001 /* FreeTDS - Library of routines accessing Sybase and Microsoft databases
00002  * Copyright (C) 1998-1999  Brian Bruns
00003  *
00004  * This library is free software; you can redistribute it and/or
00005  * modify it under the terms of the GNU Library General Public
00006  * License as published by the Free Software Foundation; either
00007  * version 2 of the License, or (at your option) any later version.
00008  *
00009  * This library is distributed in the hope that it will be useful,
00010  * but WITHOUT ANY WARRANTY; without even the implied warranty of
00011  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
00012  * Library General Public License for more details.
00013  *
00014  * You should have received a copy of the GNU Library General Public
00015  * License along with this library; if not, write to the
00016  * Free Software Foundation, Inc., 59 Temple Place - Suite 330,
00017  * Boston, MA 02111-1307, USA.
00018  */
00019 
00020 #ifndef _tdsstring_h_
00021 #define _tdsstring_h_
00022 
00023 static char rcsid_tdsstring_h[] = "$Id: tdsstring.h,v 1.6 2002/11/21 16:53:43 freddy77 Exp $";
00024 static void *no_unused_tdsstring_h_warn[] = { rcsid_tdsstring_h, no_unused_tdsstring_h_warn };
00025 
00026 extern char tds_str_empty[];
00027 
00028 /* TODO do some function and use inline if available */
00029 
00035 #define tds_dstr_init(s) \
00036         { *(s) = tds_str_empty; }
00037 
00038 void tds_dstr_zero(char **s);
00039 void tds_dstr_free(char **s);
00040 
00041 char *tds_dstr_copy(char **s, const char *src);
00042 char *tds_dstr_copyn(char **s, const char *src, unsigned int length);
00043 char *tds_dstr_set(char **s, char *src);
00044 
00046 #define tds_dstr_isempty(s) \
00047         (**(s) == '\0')
00048 
00051 #endif /* _tdsstring_h_ */

Generated on Sat Apr 5 23:17:40 2003 for FreeTDS API by doxygen1.2.18