Angka  0.0.1
A C library focusing on data manipulation and visualization
init.h
Go to the documentation of this file.
1 
7 #ifndef __INIT_H
8 #define __INIT_H
9 
10 #ifdef __cplusplus
11 extern "C" {
12 #endif
13 
17 enum e_bool {FALSE, TRUE};
18 
24 typedef struct s_slice {
26  int start;
28  int step;
30  int stop;
31 } AgxSlice;
32 
50 void agx_print_integer(int val);
51 
64 void agx_print_double(double val);
65 
78 void agx_print_string(char *val);
95 int agx_string_length_integer(int val);
96 
107 int agx_string_length_string(char *str);
108 
119 int agx_string_length_double(double val);
133 char *agx_string_from_double_set(char *fmt, double val);
134 
145 char *agx_string_from_integer(int val);
146 
154 int agx_string_append_integer(char *target, int val, int isInitial);
155 
166 char *agx_string_from_double(double val);
167 
175 int agx_string_append_double(char *target, double val, int isInitial);
176 
185 int agx_print_values(char *inbetween, char *end, char *fmt, ...);
186 
191 int agx_print_values_space(char *fmt, ...);
192 
197 int agx_print_values_new_line(char *fmt, ...);
198 #ifdef __cplusplus
199 }
200 #endif
201 
202 #endif
char * agx_string_from_double(double val)
create a string from double
e_bool
boolean
Definition: init.h:17
char * agx_string_from_double_set(char *fmt, double val)
create a string from double using special format
int stop
the end of value
Definition: init.h:30
Definition: init.h:17
int step
the interval value
Definition: init.h:28
int agx_print_values_space(char *fmt,...)
the quick function of agx_print_values using inbetween = " ", and end = "\n"
a struct for slicing AgxMatrix and AgxVector data
Definition: init.h:24
int agx_string_append_double(char *target, double val, int isInitial)
appending the existing string with an double value
int agx_print_values_new_line(char *fmt,...)
the quick function of agx_print_values using inbetween = "\n", and end = " "
int agx_print_values(char *inbetween, char *end, char *fmt,...)
print some values in variant formats
void agx_print_string(char *val)
print a string (an array of character)
Definition: init.h:17
int start
the begin of value
Definition: init.h:26
struct s_slice AgxSlice
a struct for slicing AgxMatrix and AgxVector data
int agx_string_append_integer(char *target, int val, int isInitial)
appending the existing string with an integer value
void agx_print_double(double val)
print a double value
int agx_string_length_string(char *str)
count the string length of a string
void agx_print_integer(int val)
print an integer value
int agx_string_length_integer(int val)
count the string length of an integer value
char * agx_string_from_integer(int val)
create a string from integer
int agx_string_length_double(double val)
count the string length of a double value