#ifndef _NFD_COMMON_H
#define _NFD_COMMON_H
#include "include/nfd.h"
#include <stdint.h>
#ifdef __cplusplus
extern "C" {
#endif
#define NFD_MAX_STRLEN 256
#define _NFD_UNUSED(x) ((void)x)
#define NFD_UTF8_BOM "\xEF\xBB\xBF"
void* NFDi_Malloc(size_t bytes);
void NFDi_Free(void* ptr);
void NFDi_SetError(const char* msg);
int NFDi_SafeStrncpy(char* dst, const char* src, size_t maxCopy);
int32_t NFDi_UTF8_Strlen(const nfdchar_t* str);
int NFDi_IsFilterSegmentChar(char ch);
void NFDi_SplitPath(const char* path, const char** out_dir, const char** out_filename);
#ifdef __cplusplus
}
#endif
#endif