mirror of
https://github.com/cahirwpz/libnix.git
synced 2025-12-08 14:58:56 +00:00
Devise a counterpart for libnix13.
From now on nix13 or nix20 will have to be provided explicitely to linker, depending on which Kickstart your application should run on.
This commit is contained in:
10
sources/nix20/extra/stricmp.c
Normal file
10
sources/nix20/extra/stricmp.c
Normal file
@ -0,0 +1,10 @@
|
||||
#include <string.h>
|
||||
#include <proto/utility.h>
|
||||
#include "stabs.h"
|
||||
|
||||
int stricmp(const char *s1,const char *s2)
|
||||
{
|
||||
return Stricmp((STRPTR)s1,(STRPTR)s2);
|
||||
}
|
||||
|
||||
ALIAS(strcasecmp,stricmp);
|
||||
10
sources/nix20/extra/strnicmp.c
Normal file
10
sources/nix20/extra/strnicmp.c
Normal file
@ -0,0 +1,10 @@
|
||||
#include <string.h>
|
||||
#include <proto/utility.h>
|
||||
#include "stabs.h"
|
||||
|
||||
int strnicmp(const char *s1,const char *s2,size_t len)
|
||||
{
|
||||
return Strnicmp((STRPTR)s1,(STRPTR)s2,(LONG)len);
|
||||
}
|
||||
|
||||
ALIAS(strncasecmp,strnicmp);
|
||||
Reference in New Issue
Block a user