18 lines
390 B
C
Raw Normal View History

2025-01-14 17:53:15 +00:00
#include <stdlib.h>
#include <string.h>
#include <stdio.h>
void *rmalloc(size_t);
void *rfree(void *);
int rtest_end(char *);
void rprintgf(FILE *f, char *format, ...);
int main() {
for (int i = 0; i < 100; i++) {
void *data = rmalloc(5000);
memset(data, 0, 5000);
rfree(data);
}
rprintgf(stdout, "Hello from .so library!");
return rtest_end("");
}