Comments and TODO

This commit is contained in:
Curt Spark 2024-07-27 02:00:22 +01:00
parent d427adb0ea
commit 626c638ae5
1 changed files with 22 additions and 20 deletions

42
main.c
View File

@ -19,25 +19,30 @@ void swap_int(int *pX, int *pY) {
int main() {
// intArray unsorted_array;
// int unsorted_array_data[] = { 1, 5, 2, 1, 4, 8, 3, 2, 6, 7 };
// unsorted_array.length = sizeof(unsorted_array_data) / sizeof(int);
// unsorted_array.data = unsorted_array_data;
// intArray sorted_array;
// int sorted_array_data[] = { 1, 2, 4, 8, 9, 9, 9 };
// sorted_array.length = sizeof(sorted_array_data) / sizeof(int);
// sorted_array.data = sorted_array_data;
//
// printf("Unsorted Array : ");
// print_intArray(&unsorted_array);
// printf("Unsorted Array Sorted?: %d\n", check_intArray_sorted(&unsorted_array));
// printf("Sorted Array : ");
// print_intArray(&sorted_array);
// printf("Sorted Array Sorted?: %d\n", check_intArray_sorted(&sorted_array));
//
// printf("40C == %dF\n", (int) celsius_to_farenheit(40.0));
/* TODO: Move all of this stuff into its own projects */
/*intArray unsorted_array;
int unsorted_array_data[] = { 1, 5, 2, 1, 4, 8, 3, 2, 6, 7 };
unsorted_array.length = sizeof(unsorted_array_data) / sizeof(int);
unsorted_array.data = unsorted_array_data;
intArray sorted_array;
int sorted_array_data[] = { 1, 2, 4, 8, 9, 9, 9 };
sorted_array.length = sizeof(sorted_array_data) / sizeof(int);
sorted_array.data = sorted_array_data;
printf("Unsorted Array : ");
print_intArray(&unsorted_array);
printf("Unsorted Array Sorted?: %d\n", check_intArray_sorted(&unsorted_array));
printf("Sorted Array : ");
print_intArray(&sorted_array);
printf("Sorted Array Sorted?: %d\n", check_intArray_sorted(&sorted_array));
printf("40C == %dF\n", (int) celsius_to_farenheit(40.0));
char *reserved_memory = ss_alloc(100);
ss_alloc_free(reserved_memory);
printf("Memory : %d/%d", ALLOC_SIZE, (int)ss_alloc_get_used_bytes());*/
const bitmap test = init_bitmap(255, 255);
/* TODO: Include fd as part of write to bitmap */
const bitmap_file test_file = write_to_bitmap(&test, "test.bmp");
bitmap_pixel_color target_pixel;
@ -54,7 +59,4 @@ int main() {
}
close(fd);
char *reserved_memory = ss_alloc(100);
ss_alloc_free(reserved_memory);
printf("Memory : %d/%d", ALLOC_SIZE, (int)ss_alloc_get_used_bytes());
}