mirror of
https://github.com/meshcore-dev/MeshCore.git
synced 2026-03-31 21:15:49 +00:00
16 lines
469 B
C++
16 lines
469 B
C++
#pragma once
|
|
|
|
#include <stddef.h>
|
|
#include <stdint.h>
|
|
|
|
#define TXT_TYPE_PLAIN 0 // a plain text message
|
|
#define TXT_TYPE_CLI_DATA 1 // a CLI command
|
|
#define TXT_TYPE_SIGNED_PLAIN 2 // plain text, signed by sender
|
|
|
|
class StrHelper {
|
|
public:
|
|
static void strncpy(char* dest, const char* src, size_t buf_sz);
|
|
static void strzcpy(char* dest, const char* src, size_t buf_sz); // pads with trailing nulls
|
|
static const char* ftoa(float f);
|
|
};
|