MySQL 5.6.14 Source Code Document
Main Page
Related Pages
Modules
Namespaces
Classes
Files
Examples
File List
File Members
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Friends
Macros
Groups
Pages
factorial.c
1
#ifdef DBUG_OFF
/* We are testing dbug */
2
3
int
factorial(
register
int
value) {
4
if
(value > 1) {
5
value *= factorial(value-1);
6
}
7
return
value;
8
}
9
10
#else
11
12
#include <my_global.h>
13
14
int
factorial (
15
register
int
value)
16
{
17
DBUG_ENTER (
"factorial"
);
18
DBUG_PRINT (
"find"
, (
"find %d factorial"
, value));
19
if
(value > 1) {
20
value *= factorial (value - 1);
21
}
22
DBUG_PRINT (
"result"
, (
"result is %d"
, value));
23
DBUG_RETURN (value);
24
}
25
26
#endif
27
dbug
factorial.c
Generated on Sat Nov 9 2013 01:24:40 for MySQL 5.6.14 Source Code Document by
1.8.1.2