GRASS Programmer's Manual  6.5.svn(2014)-r66266
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Pages
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, const 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, const 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 172 of file string.c.

References count, db_calloc(), and db_init_string().

Referenced by db__recv_string_array(), and db_alloc_index_columns().

int db_copy_string ( dbString *  dst,
dbString *  src 
)

Definition at line 212 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 223 of file string.c.

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

Referenced by db__copy_table(), and submit().

int db_enlarge_string ( dbString *  x,
int  len 
)

Definition at line 111 of file string.c.

References db_realloc(), db_store(), and NULL.

Referenced by db__recv_string(), and db_append_string().

void db_free_string_array ( dbString *  a,
int  n 
)

Definition at line 155 of file string.c.

References db_free(), db_free_string(), and n.

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

int db_set_string_no_copy ( dbString *  x,
char *  s 
)

Definition at line 44 of file string.c.

Referenced by db__send_Cstring().

unsigned int db_sizeof_string ( dbString *  x)

Definition at line 55 of file string.c.

Referenced by db_zero_string().

void db_zero_string ( dbString *  x)

Definition at line 68 of file string.c.

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

Referenced by IL_check_at_points_2d().