Azure IoT common library

Fork of azure_c_shared_utility by Azure IoT

Revision:
25:8507bf644fdf
Parent:
21:b92006c5b9ff
Child:
30:ce3813c5a692
diff -r 96ae4d5375ef -r 8507bf644fdf strings.c
--- a/strings.c	Thu Apr 06 14:12:06 2017 -0700
+++ b/strings.c	Fri Apr 21 14:51:10 2017 -0700
@@ -119,6 +119,9 @@
     return result;
 }
 
+#if defined(__GNUC__)
+__attribute__ ((format (printf, 1, 2)))
+#endif
 STRING_HANDLE STRING_construct_sprintf(const char* format, ...)
 {
     STRING* result;
@@ -507,6 +510,9 @@
     return result;
 }
 
+#if defined(__GNUC__)
+__attribute__ ((format (printf, 2, 3)))
+#endif
 int STRING_sprintf(STRING_HANDLE handle, const char* format, ...)
 {
     int result;