liberis
|
00001 /* 00002 liberis -- A set of libraries for controlling the NEC PC-FX 00003 00004 Copyright (C) 2011 Alex Marshall "trap15" <trap15@raidenii.net> 00005 00006 # This code is licensed to you under the terms of the MIT license; 00007 # see file LICENSE or http://www.opensource.org/licenses/mit-license.php 00008 */ 00009 00014 #ifndef _LIBERIS_STD_H_ 00015 #define _LIBERIS_STD_H_ 00016 00017 #include <eris/types.h> 00018 00019 void memset32(void* addr, u32 val, int size); 00020 void memset16(void* addr, u16 val, int size); 00021 void memset(void* addr, u8 val, int size); 00022 void memcpy32(void* dst, void* src, int size); 00023 void memcpy16(void* dst, void* src, int size); 00024 void memcpy(void* dst, void* src, int size); 00025 int memcmp32(void* mem1, void* mem2, int size); 00026 int memcmp16(void* mem1, void* mem2, int size); 00027 int memcmp(void* mem1, void* mem2, int size); 00028 00029 int strlen32(u32* str); 00030 int strlen16(u16* str); 00031 int strlen(char* str); 00032 void strcpy32(u32* dst, u32* src); 00033 void strcpy16(u16* dst, u16* src); 00034 void strcpy(char* dst, char* src); 00035 int strcmp32(u32* str1, u32* str2); 00036 int strcmp16(u16* str1, u16* str2); 00037 int strcmp(char* str1, char* str2); 00038 int strnlen32(u32* str, int len); 00039 int strnlen16(u16* str, int len); 00040 int strnlen(char* str, int len); 00041 void strncpy32(u32* dst, u32* src, int len); 00042 void strncpy16(u16* dst, u16* src, int len); 00043 void strncpy(char* dst, char* src, int len); 00044 int strncmp32(u32* str1, u32* str2, int len); 00045 int strncmp16(u16* str1, u16* str2, int len); 00046 int strncmp(char* str1, char* str2, int len); 00047 00048 00049 #endif 00050