git.ucc.asn.au
/
tpg
/
acess2.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Exteding Driver interface
[tpg/acess2.git]
/
Kernel
/
lib.c
diff --git
a/Kernel/lib.c
b/Kernel/lib.c
index
70d116e
..
db01450
100644
(file)
--- a/
Kernel/lib.c
+++ b/
Kernel/lib.c
@@
-2,7
+2,7
@@
* Acess2
* Common Library Functions
*/
* Acess2
* Common Library Functions
*/
-#include <
common
.h>
+#include <
acess
.h>
// === CONSTANTS ===
#define RANDOM_SEED 0xACE55052
// === CONSTANTS ===
#define RANDOM_SEED 0xACE55052
@@
-92,12
+92,12
@@
int strpos(const char *Str, char Ch)
}
/**
}
/**
- * \fn
int
ByteSum(void *Ptr, int Size)
+ * \fn
Uint8
ByteSum(void *Ptr, int Size)
* \brief Adds the bytes in a memory region and returns the sum
*/
* \brief Adds the bytes in a memory region and returns the sum
*/
-
int
ByteSum(void *Ptr, int Size)
+
Uint8
ByteSum(void *Ptr, int Size)
{
{
-
int
sum = 0;
+
Uint8
sum = 0;
while(Size--) sum += *(Uint8*)Ptr++;
return sum;
}
while(Size--) sum += *(Uint8*)Ptr++;
return sum;
}
@@
-421,11
+421,15
@@
int LookupString(char **Array, char *Needle)
return -1;
}
return -1;
}
+EXPORT(strlen);
EXPORT(strdup);
EXPORT(strcmp);
EXPORT(strdup);
EXPORT(strcmp);
+EXPORT(strncmp);
EXPORT(strcpy);
EXPORT(strcpy);
+//EXPORT(strncpy);
EXPORT(timestamp);
EXPORT(ReadUTF8);
EXPORT(CheckMem);
EXPORT(CheckString);
EXPORT(timestamp);
EXPORT(ReadUTF8);
EXPORT(CheckMem);
EXPORT(CheckString);
+EXPORT(LookupString);
UCC
git Repository :: git.ucc.asn.au