//////////////////////////////////////// //////////////////////////////////////// //////////////////////////////////////// /////////////////
Pass the test in linux gcc (submit if any Bug exists)
To use this code, you need to note the author: fqheda
This Code complies with the GPL V3.0 standard and is free of charge-function pre-and post-call
Note: In the same. c, when function A calls another function B, if function B
Located in front of function A, which can be called A pre-function call. This mode is called directly.
If function B is behind function A, it can be called the function suffix.
Call. You need to declare it before function A and then call it.
//////////////////////////////////////// //////////////////////////////////////// //////////////////////////////////////// ////////////////////
/* Function call mode */
# Include <stdio. h>
Void func_behind (void );
Void func_before (void)
{
Printf ("\ n @: before function call !!! \ N ");
}
Int main (int argc, char ** argv)
{
Func_behind ();
Func_before ();
Return 0;
}
Void func_behind (void)
{
Printf ("\ n @: behind function call !!! \ N ");
}
Execution result (UBUNTU 10.04-GCC4.4 compilation)