1
/* Auxiliary C code for Ghttp.
3
* Copyright (c) 1999 Manuel M. T. Chakravarty
5
* This is required due to the inability of GHC's FFI to pass structures from C
11
ghttp_current_status *ghttpHS_get_status (ghttp_request *a_request)
13
ghttp_current_status *status;
15
status = (ghttp_current_status *) malloc (sizeof (ghttp_current_status));
17
printf ("Ghttp: ghttpHS_get_status: Out of memory!");
20
*status = ghttp_get_status (a_request);