free(localtime);
}
+/*
double get_timestamp_millis() {
struct timeb t;
ftime(&t);
memset( ptr, 0, size );
return ptr;
}
-
-// ---------------------------------------------------------------------------------
-// Here we define how we want to handle various error levels.
-// ---------------------------------------------------------------------------------
+*/
static FILE* log_file = NULL;
}
-// ---------------------------------------------------------------------------------
-// Flesh out a ubiqitous growing string buffer
-// ---------------------------------------------------------------------------------
-
+/*
growing_buffer* buffer_init(int num_initial_bytes) {
if( num_initial_bytes > BUFFER_MAX_SIZE ) {
growing_buffer* gb = (growing_buffer*) safe_malloc(len);
- gb->n_used = 0;/* nothing stored so far */
+ gb->n_used = 0;
gb->size = num_initial_bytes;
gb->buf = (char *) safe_malloc(gb->size + 1);
char* buffer_data( growing_buffer *gb) {
return strdup( gb->buf );
}
+*/