Lesser General Public License for more details.
*/
-#include <endian.h>
+#include <ctype.h>
#include <errno.h>
#include <stdint.h>
#include <stdlib.h>
#include <string.h>
+#ifdef HAVE_ENDIAN_H
+# include <endian.h>
+#endif
+
#include <loc/libloc.h>
#include <loc/as.h>
+#include <loc/compat.h>
#include <loc/format.h>
#include <loc/private.h>
#include <loc/stringpool.h>
return 0;
}
+
+int loc_as_match_string(struct loc_as* as, const char* string) {
+ // Search if string is in name
+ if (strcasestr(as->name, string) != NULL)
+ return 1;
+
+ return 0;
+}