X-Git-Url: https://git.ucc.asn.au/?a=blobdiff_plain;f=Kernel%2Flib.c;h=db0145057cd18b754b4d028e2b2a79a89d3a1877;hb=b289025913a0e4573181155aeeaab37ed92cf525;hp=70d116e067108c0e1206100bc962c89acad9c9b3;hpb=04b368645c34cc3853fc13f93e33ac7878be8479;p=tpg%2Facess2.git diff --git a/Kernel/lib.c b/Kernel/lib.c index 70d116e0..db014505 100644 --- a/Kernel/lib.c +++ b/Kernel/lib.c @@ -2,7 +2,7 @@ * Acess2 * Common Library Functions */ -#include +#include // === 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 */ -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; } @@ -421,11 +421,15 @@ int LookupString(char **Array, char *Needle) return -1; } +EXPORT(strlen); EXPORT(strdup); EXPORT(strcmp); +EXPORT(strncmp); EXPORT(strcpy); +//EXPORT(strncpy); EXPORT(timestamp); EXPORT(ReadUTF8); EXPORT(CheckMem); EXPORT(CheckString); +EXPORT(LookupString);