string.c File Reference

#include <string.h>
#include <stdlib.h>
#include <grass/dbmi.h>

Include dependency graph for string.c:

Go to the source code of this file.

Functions

void db_init_string (dbString *x)
int db_set_string (dbString *x, char *s)
int db_set_string_no_copy (dbString *x, char *s)
unsigned int db_sizeof_string (dbString *x)
void db_zero_string (dbString *x)
int db_enlarge_string (dbString *x, int len)
char * db_get_string (dbString *x)
void db_free_string (dbString *x)
void db_free_string_array (dbString *a, int n)
dbString * db_alloc_string_array (int count)
int db_append_string (dbString *x, char *s)
int db_copy_string (dbString *dst, dbString *src)
void db_double_quote_string (dbString *src)


Function Documentation

dbString* db_alloc_string_array ( int  count  ) 

Definition at line 190 of file string.c.

References db_calloc(), and db_init_string().

Referenced by db__recv_string_array(), and db_alloc_index_columns().

int db_append_string ( dbString *  x,
char *  s 
)

int db_copy_string ( dbString *  dst,
dbString *  src 
)

Definition at line 234 of file string.c.

References db_get_string(), and db_set_string().

Referenced by db_copy_value().

void db_double_quote_string ( dbString *  src  ) 

Definition at line 247 of file string.c.

References db_append_string(), db_free_string(), db_get_string(), db_init_string(), and db_set_string().

Referenced by db__copy_table().

int db_enlarge_string ( dbString *  x,
int  len 
)

Definition at line 126 of file string.c.

References db_realloc(), and db_store().

Referenced by db__recv_string(), and db_append_string().

void db_free_string ( dbString *  x  ) 

void db_free_string_array ( dbString *  a,
int  n 
)

Definition at line 170 of file string.c.

References db_free_string().

Referenced by db__recv_string_array(), db_d_list_databases(), db_free_index(), and db_table_exists().

char* db_get_string ( dbString *  x  ) 

void db_init_string ( dbString *  x  ) 

int db_set_string ( dbString *  x,
char *  s 
)

int db_set_string_no_copy ( dbString *  x,
char *  s 
)

Definition at line 49 of file string.c.

Referenced by db__send_Cstring().

unsigned int db_sizeof_string ( dbString *  x  ) 

Definition at line 62 of file string.c.

Referenced by db_zero_string().

void db_zero_string ( dbString *  x  ) 

Definition at line 76 of file string.c.

References db_get_string(), db_sizeof_string(), and db_zero().

Referenced by main().


Generated on Sun Apr 6 17:31:56 2008 for GRASS by  doxygen 1.5.5