summaryrefslogtreecommitdiff
path: root/src/user/include/knob/format.h
blob: d55036c371a2ef75df2d26f755572034e0ad46e4 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
#ifndef KNOB_FORMAT_H
#define KNOB_FORMAT_H

#include <stdbool.h>
#include <stdint.h>

bool try_sntoi(const char *s, uint32_t n, uint32_t *out);
void itosz(uint32_t i, char *out) __attribute__ ((access (write_only, 2)));
void itosz_h8(uint8_t i, char *out) __attribute__ ((access (write_only, 2)));
void itosz_h32(uint32_t i, char *out) __attribute__ ((access (write_only, 2)));

#endif