alternative: using definitions to map ucrt

This commit is contained in:
Joao Antonio Cardoso 2020-04-01 19:07:01 -03:00 committed by João Antônio Cardoso
parent ea6d1c40ee
commit cf62ea7bab
1 changed files with 4 additions and 32 deletions

View File

@ -1,37 +1,9 @@
#ifndef UNPOSIX_STRINGS_H
#define UNPOSIX_STRINGS_H
#include <sys/types.h>
#include <locale.h>
inline int ffs(int i)
{
#warning ffs is not implemented.
return 0;
}
inline int strcasecmp(const char* s1, const char* s2)
{
#warning strcasecmp is not implemented.
return 0;
}
inline int strcasecmp_l(const char* s1, const char* s2, locale_t locale)
{
#warning strcasecmp_l is not implemented.
return 0;
}
inline int strncasecmp(const char* s1, const char* s2, size_t size)
{
#warning strncasecmp is not implemented.
return 0;
}
inline int strncasecmp_l(const char* s1, const char* s2, size_t size, locale_t locale)
{
#warning strncasecmp_l is not implemented.
return 0;
}
#define strncasecmp _strnicmp
#define strcasecmp _stricmp
#define strncasecmp_l _strnicmp_l
#define strcasecmp_l _strncmp_l
#endif