Make charmap-converting a non-UTF8 string non-fatal

This commit is contained in:
ISSOtm
2020-12-12 14:16:50 +01:00
parent f5b0eae9cd
commit 0d9de01f9d
3 changed files with 8 additions and 1 deletions

View File

@@ -13,6 +13,9 @@
uint32_t calchash(const char *s);
char const *print(int c);
/*
* @return The number of bytes read, or 0 if invalid data was found
*/
size_t readUTF8Char(uint8_t *dest, char const *src);
#endif /* RGBDS_UTIL_H */