Azure IoT common library
Dependents: STM32F746_iothub_client_sample_mqtt f767zi_mqtt iothub_client_sample_amqp iothub_client_sample_http ... more
Diff: strings.c
- Revision:
- 48:81866008bba4
- Parent:
- 40:3f3af6cd8a01
--- a/strings.c Thu Jul 12 18:10:56 2018 -0700 +++ b/strings.c Tue Sep 11 11:15:08 2018 -0700 @@ -129,7 +129,7 @@ STRING_HANDLE STRING_construct_sprintf(const char* format, ...) { STRING* result; - + #ifdef STRINGS_C_SPRINTF_BUFFER_SIZE size_t maxBufSize = STRINGS_C_SPRINTF_BUFFER_SIZE; char buf[STRINGS_C_SPRINTF_BUFFER_SIZE]; @@ -530,7 +530,7 @@ int STRING_sprintf(STRING_HANDLE handle, const char* format, ...) { int result; - + #ifdef STRINGS_C_SPRINTF_BUFFER_SIZE size_t maxBufSize = STRINGS_C_SPRINTF_BUFFER_SIZE; char buf[STRINGS_C_SPRINTF_BUFFER_SIZE]; @@ -538,7 +538,7 @@ size_t maxBufSize = 0; char* buf = NULL; #endif - + if (handle == NULL || format == NULL) { /* Codes_SRS_STRING_07_042: [if the parameters s1 or format are NULL then STRING_sprintf shall return non zero value.] */