miqt/libmiqt/libmiqt.h

30 lines
372 B
C
Raw Normal View History

#ifndef MIQT_BINDING_H
#define MIQT_BINDING_H
2024-09-12 06:47:31 +00:00
#include <string.h>
#include <stdlib.h>
2024-09-12 06:47:31 +00:00
#ifdef __cplusplus
extern "C" {
#endif
2024-09-12 06:48:06 +00:00
struct miqt_string {
size_t len;
char* data;
};
2024-09-12 06:48:06 +00:00
struct miqt_array {
size_t len;
void* data;
};
2024-09-12 06:48:06 +00:00
struct miqt_string* miqt_strdup(const char* src, size_t len);
typedef const char const_char;
2024-09-12 06:47:31 +00:00
#ifdef __cplusplus
}
2024-09-12 06:47:31 +00:00
#endif
#endif