forked from NeoFlock/noom
update build.lua and change char* to const char*
This commit is contained in:
@@ -1,7 +1,7 @@
|
||||
#include "helper.h"
|
||||
#include "types.h"
|
||||
|
||||
int noom_startswith(const char* str, char* compare) {
|
||||
int noom_startswith(const char* str, const char* compare) {
|
||||
noom_uint_t i = 0;
|
||||
while (1) {
|
||||
if (compare[i] == '\0') return 1; // we did it
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
#include "types.h"
|
||||
|
||||
int noom_startswith(const char* str, char* compare);
|
||||
int noom_startswith(const char* str, const char* compare);
|
||||
int noom_streql(const char* stra, noom_uint_t lena, const char* strb, noom_uint_t lenb); // rename to something better?
|
||||
|
||||
void* noom_alloc(noom_uint_t size);
|
||||
|
||||
Reference in New Issue
Block a user