Logo Search packages:      
Sourcecode: mingw-w64 version File versions  Download package

t_fctptr.c

#include <stdlib.h>
#include <malloc.h>

void *(*my_malloc)(size_t) = malloc;
void (*my_free)(void *) = free;

int main()
{
  void *p = (*my_malloc) (1024);
  if (!p) abort();
  (*my_free)(p);
  return 0;
}


Generated by  Doxygen 1.6.0   Back to index