main.c 487 B

12345678910111213141516171819202122232425262728
  1. #include <stdio.h>
  2. #include <stdlib.h>
  3. #include "d4dag.h"
  4. /* todo with this there is no difference between mainc and mainc++ */
  5. /* todo there is a small difference in the binaries */
  6. /* all mlloc's will be below 4Gb at once */
  7. static void *mymalloc(unsigned int n)
  8. {
  9. return (malloc((size_t)n));
  10. }
  11. int main(int argc, char *argv[])
  12. {
  13. int status = 0;
  14. if (argc) {
  15. }
  16. if (argv) {
  17. }
  18. status = d4d_init(mymalloc, free);
  19. printf("%d\n", status);
  20. status = d4d_deinit();
  21. return (0);
  22. }