Luca Jel
/
mbed5a_testy
sdsd
Fork of mbed5a_testy by
Diff: string.h
- Revision:
- 1:b8d65b5745d1
- Parent:
- 0:e69a0b7f4b41
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/string.h Fri May 05 20:01:41 2017 +0000 @@ -0,0 +1,14 @@ +#define NULL 0 +#define TERMINATOR '\r' +#define DELIMITER_CHAR 0x20 + +enum CompResult { NOTEQUAL, EQUAL }; +enum Result { OK, ERROR }; + +void CopyString(char pcSource[], char pcDestination[]); +void AppendString (char pcSourceStr[], char pcDestinationStr[]); +void AppendUIntToString (unsigned int uiValue, char pcDestinationStr[]); +void ReplaceCharactersInString(char pcString[], char cOldChar,char cNewChar); +void UIntToHexStr (unsigned int uiValue, char pcStr[]); +enum CompResult eCompareString(char pcStr1[], char pcStr2[]); +enum Result eHexStringToUInt(char pcStr[],unsigned int *puiValue);