]> git.lizzy.rs Git - shadowclad.git/blob - src/engine/string.h
Add copyright and license notices in source code
[shadowclad.git] / src / engine / string.h
1 /**
2  * Copyright 2020 Iwo 'Outfrost' Bujkiewicz
3  *
4  * This Source Code Form is subject to the terms of the Mozilla Public
5  * License, v. 2.0. If a copy of the MPL was not distributed with this
6  * file, You can obtain one at http://mozilla.org/MPL/2.0/.
7  */
8
9 #ifndef ENGINE_STRING_H_
10 #define ENGINE_STRING_H_
11
12 #include <assimp/types.h>
13
14 typedef struct String String;
15
16 struct String {
17         size_t length;
18         char* cstr;
19 };
20
21 String newString(const char* s);
22 String stringFromAiString(const struct aiString aistr);
23 void dropString(String str);
24
25 #endif // ENGINE_STRING_H_