Loading...
Searching...
No Matches
node_int.h
/* SPDX-License-Identifier: BSD-3-Clause
* Copyright 2016, Olivier MATZ <zer0@droids-corp.org>
*/
#pragma once
#include <stdint.h>
#include <ecoli/node.h>
struct ec_node *ec_node_int(const char *id, int64_t min, int64_t max, unsigned int base);
int ec_node_int_getval(const struct ec_node *node, const char *str, int64_t *result);
struct ec_node *ec_node_uint(const char *id, uint64_t min, uint64_t max, unsigned int base);
int ec_node_uint_getval(const struct ec_node *node, const char *str, uint64_t *result);
ec_node_uint_getval
int ec_node_uint_getval(const struct ec_node *node, const char *str, uint64_t *result)
Get the value of a parsed unsigned integer.
ec_node_uint
struct ec_node * ec_node_uint(const char *id, uint64_t min, uint64_t max, unsigned int base)
Create an unsigned integer node.
ec_node_int
struct ec_node * ec_node_int(const char *id, int64_t min, int64_t max, unsigned int base)
Create a signed integer node.
ec_node_int_getval
int ec_node_int_getval(const struct ec_node *node, const char *str, int64_t *result)
Get the value of a parsed signed integer.
ec_node
struct ec_node * ec_node(const char *typename, const char *id)
Create a new node from its type name.