This repository has been archived on 2025-02-27. You can view files and clone it, but cannot push or open issues or pull requests.
portland-os/src/user/include/knob/format.h

12 lines
No EOL
386 B
C

#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