-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathackerman.h
48 lines (35 loc) · 1.52 KB
/
ackerman.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
/*
File: ackerman.h
Author: R. Bettati
Department of Computer Science
Texas A&M University
Date : 08/02/08
Header file for the ackerman function.
This function is to be called as part of the "memtest" program
in MP1 for CPSC 313.
(All this header business is rather silly for this single function...)
*/
#ifndef _ackerman_h_ /* include file only once */
#define _ackerman_h_
/*--------------------------------------------------------------------------*/
/* DATA STRUCTURES */
/*--------------------------------------------------------------------------*/
/* -- (none) -- */
/*--------------------------------------------------------------------------*/
/* CONSTANTS */
/*--------------------------------------------------------------------------*/
/* -- (none) -- */
/*--------------------------------------------------------------------------*/
/* FORWARDS */
/*--------------------------------------------------------------------------*/
/* -- (none) -- */
/*--------------------------------------------------------------------------*/
/* MODULE ackerman */
/*--------------------------------------------------------------------------*/
extern void ackerman_main();
/* Asks user for parameters n and m and computes the result of the
(highly recursive!) ackerman function. During every recursion step,
it allocates and de-allocates a portion of memory with the use of the
memory allocator defined in module "my_allocator.H".
*/
#endif