#ifndef __LIBM_MISC__ #define __LIBM_MISC__ #ifdef _WIN32 #define strcasecmp(a,b) stricmp(a,b) #endif /* _WIN32 */ #ifdef __APPLE__ #define socklen_t int #endif /* MISC COMMANDS */ long M_GenerateSeed(); int M_DirectoryExists(const char *directory); void M_DoCatSlash(char *string); char *M_midstr(const char *string, int start, int length); int M_RandChar(); long M_FileSize(FILE *fp); char *M_GenerateIdentifier(); void M_Set_Conn_Error(M_CONN *myconn, const char *error); char *MC_SAFE_strncpy(char *dest, const char *src, long len); char *MC_SAFE_strdup(const char *src); #endif