source: proto/gml2svg/lib/C/gml2svg/util.h @ 2475

Last change on this file since 2475 was 2475, checked in by ksherdy, 7 years ago

Updated to SOA representation.

File size: 1.2 KB
Line 
1/*
2        gml2svg_util.h
3    Copyright (C) 2007, 2008 Ken Herdy
4    Version 0.9
5    Licensed to the general public under Academic Free License version 3.0
6*/
7#ifndef GML2SVG_UTIL_H_
8#define GML2SVG_UTIL_H_
9
10#include <stdio.h>
11
12/*
13 * create_timestamp_filename:
14 * returns 'yyyy-mm-ddTHH-mm-ss' XML like formatted date time string
15 */
16extern char * create_timestamp_filename();
17
18/* scale_x_style_string_parameter: If found, horizontally scales specified style string parameter.
19 * returns horizontally scaled style string.
20 *
21 */
22extern int scale_x_style_string_parameter(char * style_string, const char * css_parameter_name, const double scale_x, char ** scaled_style_string);
23
24/*
25 * convert_strtod: general purpose strtod wrapper.
26 * returns 0 on success, otherwise errno
27 */
28extern int strtod_wrapper(char * in, double * out);
29
30/*
31 * fileToCharArray: reads the contents of a file into a char array
32 * returns 0 on success and sets both char_ary, char_ary_size,
33 * otherwise returns a standard error code and sets char_ary to NULL and char_ary_size to 0
34 */
35extern int file_to_char_array(const char * file_name, char ** char_ary, unsigned long long * char_ary_size);
36
37#endif /*GML2SVG_UTIL*/
Note: See TracBrowser for help on using the repository browser.