cs252/lab1-src/test0.c

22 lines
385 B
C
Raw Normal View History

2018-10-25 14:45:56 -04:00
#include <stdlib.h>
#include <stdio.h>
#include <string.h>
#include <unistd.h>
#include "MyMalloc.h"
int main() {
const char * str = "\n---- Running test0 ---\n";
write(1, str, strlen(str));
//simple test that does nothing requiring malloc()
int i = 2;
int j = 3;
int k = i + j;
// Added so it won't complain about -Werror
k = k + 0;
//print_list();
exit(0);
}