![](/media/cache/img/default_profile.jpg.50x50_q85.jpg)
sdsd
Fork of mbed5a_testy by
Diff: other/string.h
- Revision:
- 0:e69a0b7f4b41
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/other/string.h Fri May 05 19:54:49 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);