shithub: rgbds

ref: 70bbb098d3b76909d27e0bff3c331f774073dfb0
dir: /include/asm/util.h/

View raw version
/*
 * This file is part of RGBDS.
 *
 * Copyright (c) 1997-2019, Carsten Sorensen and RGBDS contributors.
 *
 * SPDX-License-Identifier: MIT
 */

#ifndef RGBDS_UTIL_H
#define RGBDS_UTIL_H

#include <stdint.h>

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 */