BRL-CAD
density.c File Reference
#include "common.h"
#include <stdlib.h>
#include <string.h>
#include "analyze.h"
Include dependency graph for density.c:

Go to the source code of this file.

Functions

int parse_densities_buffer (char *buf, size_t len, struct density_entry *densities, struct bu_vls *result_str, int *num_densities)
 

Function Documentation

int parse_densities_buffer ( char *  buf,
size_t  len,
struct density_entry densities,
struct bu_vls result_str,
int *  num_densities 
)

Routine to parse a .density file

Definition at line 28 of file density.c.

References _ged_current_gedp, ANALYZE_ERROR, ANALYZE_OK, bu_realloc(), bu_strdup, bu_vls_printf(), DENSITY_MAGIC, ged::ged_result_str, density_entry::grams_per_cu_mm, density_entry::magic, magic, density_entry::name, and strchr().

Referenced by get_densities_from_database(), get_densities_from_file(), and main().

Here is the call graph for this function: