malloc only yolo
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 

18 lines
388 B

/*:-:-:-:-:-:-:*
I yoloswag.c I
*:-:-:-:-:-:-:*/
#include <stdint.h>
#include <stdlib.h>
#include <stdio.h>
#include "yolomalloc.h"
int main(int argc, char **argv) {
printf("sizeof(intptr_t) = %lu\n", sizeof(intptr_t));
for (int i = 1; i < argc; i++) {
long n = atol(argv[i]);
printf("yolomalloc(%ld) = %p\n", n, yolomalloc(n));
}
return 0;
}