aboutsummaryrefslogtreecommitdiffstats
path: root/Frameworks/SPMySQLFramework/Source/SPMySQLUtilities.h
diff options
context:
space:
mode:
Diffstat (limited to 'Frameworks/SPMySQLFramework/Source/SPMySQLUtilities.h')
-rw-r--r--Frameworks/SPMySQLFramework/Source/SPMySQLUtilities.h12
1 files changed, 11 insertions, 1 deletions
diff --git a/Frameworks/SPMySQLFramework/Source/SPMySQLUtilities.h b/Frameworks/SPMySQLFramework/Source/SPMySQLUtilities.h
index 50f9d504..852ca685 100644
--- a/Frameworks/SPMySQLFramework/Source/SPMySQLUtilities.h
+++ b/Frameworks/SPMySQLFramework/Source/SPMySQLUtilities.h
@@ -1,5 +1,5 @@
//
-// Locking.h
+// SPMySQLUtilities.h
// SPMySQLFramework
//
// Created by Rowan Beentje (rowan.beent.je) on February 6, 2012
@@ -30,6 +30,16 @@
#include <mach/mach_time.h>
+/**
+ * This function provides a memset() variant that cannot be optimized
+ * away by a compiler's dead store optimization.
+ *
+ * It will write cLength '\0' bytes to the buffer pointed to by cBuffer.
+ *
+ * @return See the documentation for memset_s in libc
+ */
+errno_t SPMySQLSafeEraseMemory(void *cBuffer, size_t cLength);
+
#pragma clang diagnostic push
#pragma clang diagnostic ignored "-Wunused-function"