#pragma deprecated( function1 [, function2, ...] )
The deprecated pragma lets you indicate that a function:
When the compiler encounters a deprecated function, it issues C4995.
You can deprecate macro names. Place the macro name in quotes or else macro expansion will occur.
The deprecated __declspec modifier allows you to specify deprecated status for particular forms of overloaded functions.
#include <stdio.h> void func1(void){printf("\nIn func1");} void func2(void){printf("\nIn func2");} void main() { func1(); func2(); #pragma deprecated(func1, func2) func1(); // C4995 func2(); // C4995 }