Libecoli
0.3.0
Extensible COmmand LIne library
Loading...
Searching...
No Matches
include
ecoli_node_int.h
1
/* SPDX-License-Identifier: BSD-3-Clause
2
* Copyright 2016, Olivier MATZ <zer0@droids-corp.org>
3
*/
4
10
#ifndef ECOLI_NODE_INT_
11
#define ECOLI_NODE_INT_
12
13
#include <stdint.h>
14
15
#include <ecoli_node.h>
16
17
/* ec_node("int", ...) can be used too
18
* default is no limit, base 10 */
19
20
struct
ec_node
*ec_node_int(
const
char
*
id
, int64_t min,
21
int64_t max,
unsigned
int
base);
22
23
int
ec_node_int_getval(
const
struct
ec_node
*node,
const
char
*str,
24
int64_t *result);
25
26
27
28
struct
ec_node
*ec_node_uint(
const
char
*
id
, uint64_t min,
29
uint64_t max,
unsigned
int
base);
30
31
int
ec_node_uint_getval(
const
struct
ec_node
*node,
const
char
*str,
32
uint64_t *result);
33
34
#endif
35
ec_node
struct ec_node * ec_node(const char *typename, const char *id)
Generated by
1.12.0