Mathematic Expressions Library
0.1
The core math data structures and manipulators
|
Go to the source code of this file.
Data Structures | |
struct | sym |
A named symbol type. More... | |
Macros | |
#define | SYMBOLIC_NAME_SIZE 10 |
#define | SYMBOLIC_P_STR_SIZE 16 |
Typedefs | |
typedef struct sym | sym_t |
Functions | |
sym_t | sym_new_name (char *name) |
New symbolic object whose name is set to name. More... | |
sym_t | string_to_sym (size_t src_str_len, char const *src_str) |
Create symbol from a string. More... | |
void | sym_to_string (char *dst_str, sym_t src_sym) |
Generate a string from a sym_t. More... | |
A light structure that is mostly public access.
The point of the sym structure is to create a string based reference to an object without being directly connected to the object. This allows for
#define SYMBOLIC_NAME_SIZE 10 |
#define SYMBOLIC_P_STR_SIZE 16 |
sym_t string_to_sym | ( | size_t | src_str_len, |
char const * | src_str | ||
) |
Create symbol from a string.
src_str_len | The length of the actual buffer (not the number size). |
src_str | The source string. |
< Used to explore the presence of a symbol parameter
sym_t sym_new_name | ( | char * | name | ) |
New symbolic object whose name is set to name.
void sym_to_string | ( | char * | dst_str, |
sym_t | src_sym | ||
) |
Generate a string from a sym_t.
dst_str | String to write to. |
src_sym | Symbolic type to read from. |