Azure IoT common library
Dependents: STM32F746_iothub_client_sample_mqtt f767zi_mqtt iothub_client_sample_amqp iothub_client_sample_http ... more
Diff: string_tokenizer.c
- Revision:
- 1:9190c0f4d23a
- Parent:
- 0:fa2de1b79154
- Child:
- 6:c55b013dfc2a
--- a/string_tokenizer.c Fri Apr 08 12:01:36 2016 -0700 +++ b/string_tokenizer.c Sun Apr 24 16:41:14 2016 -0700 @@ -32,7 +32,7 @@ /* Codes_SRS_STRING_04_001: [STRING_TOKENIZER_create shall return an NULL STRING_TOKENIZER_HANDLE if parameter handle is NULL] */ if (handle == NULL) { - LogError("Invalid Argument. Handle cannot be NULL.\r\n"); + LogError("Invalid Argument. Handle cannot be NULL."); result = NULL; } else @@ -52,17 +52,17 @@ /* Codes_SRS_STRING_07_001: [STRING_TOKENIZER_create shall return an NULL STRING_TOKENIZER_HANDLE if parameter input is NULL] */ if (input == NULL) { - LogError("Invalid Argument. Handle cannot be NULL.\r\n"); + LogError("Invalid Argument. Handle cannot be NULL."); result = NULL; } /* Codes_SRS_STRING_07_002: [STRING_TOKENIZER_create shall allocate a new STRING_TOKENIZER_HANDLE having the content of the STRING_HANDLE copied and current position pointing at the beginning of the string] */ else if ((result = (STRING_TOKEN*)malloc(sizeof(STRING_TOKEN))) == NULL) { - LogError("Memory Allocation failed. Cannot allocate STRING_TOKENIZER.\r\n"); + LogError("Memory Allocation failed. Cannot allocate STRING_TOKENIZER."); } else if ((mallocAndStrcpy_s(&inputStringToMalloc, input)) != 0) { - LogError("Memory Allocation Failed. Cannot allocate and copy string Content.\r\n"); + LogError("Memory Allocation Failed. Cannot allocate and copy string Content."); free(result); result = NULL; } @@ -98,7 +98,7 @@ } else if (delimitterSize == 0) { - LogError("Empty delimiters parameter.\r\n"); + LogError("Empty delimiters parameter."); result = __LINE__; } else @@ -169,7 +169,7 @@ //copy here the string to output. if (STRING_copy_n(output, token->currentPos, amountOfCharactersToCopy) != 0) { - LogError("Problem copying token to output String.\r\n"); + LogError("Problem copying token to output String."); result = __LINE__; } else