DSDP
sdpexit.c
1 #include "numchol.h"
2 #include <string.h>
3 
4 void ShutDown(){
5 
6  /* sdpdat* sdt = sdat; */
7  printf("\n Shutdown -- ");
8 
9 } /* ShutDown */
10 
11 
12 int ExitProc(int ccode,
13  char *str)
14 {
15  xcode code=(xcode)ccode;
16 
17  printf("\n Exit -- %d : ",ccode);
18 
19  switch (code) {
20  case OptFound:
21  printf("optimal solution found");
22  return code;
23  case OutOfSpc:
24  printf("out of memory space");
25  break;
26  default:
27  break;
28  }
29  if (str) printf(", %s",str);
30 
31  ShutDown();
32 
33  printf("\n Exiting -- ");
34 
35  return 1;
36 } /* ExitProc */
37