Extend memset macro to check for zero 3rd parameter and use