/tutorial/external/C/c_glue4.c

http://github.com/tybor/Liberty · C · 12 lines · 9 code · 2 blank · 1 comment · 0 complexity · e6e95e4a3475dda0315808ab2b211513 MD5 · raw file

  1. /* Hand-written C code to be used with example4.e */
  2. #include <stdlib.h>
  3. #include "c_glue4.h"
  4. Point * malloc_point(void) {
  5. Point* point;
  6. point = (Point*)malloc(sizeof(Point));
  7. point->x = 0.0;
  8. point->x = 0.0;
  9. return point;
  10. }