Logo Search packages:      
Sourcecode: dsdp version File versions  Download package

int DSDPSetDestroyRoutine ( DSDP  dsdp,
int(*)(void *)  fd,
void *  ctx 
)

Set a routine that will be called during DSDPDestroy().

Parameters:
dsdp the solver
fd function pointer
ctx pointer to structure.
See also:
DSDPDestroy()

Definition at line 469 of file dsdpsetup.c.

                                                                 {
  int nd=dsdp->ndroutines;
  if (nd<10){
    dsdp->droutine[nd].f=fd;
    dsdp->droutine[nd].ptr=ctx;
    dsdp->ndroutines++;
  } else {
    printf("TOO MANY Destroy routines\n");
    return 1;
  }
  return 0;
}


Generated by  Doxygen 1.6.0   Back to index