Swizzling does not exist for a C function, but there is an equivalent called patching. Unfortunately, it will not work on iOS.
In OS X, A, a code entry system such as mach_override can be used to fix functions. It is not available for iOS. Even if you can make it work, Apple will never approve it for the App Store.
source
share