49 lines
1.0 KiB
C
49 lines
1.0 KiB
C
#include <stdio.h>
|
|
// #include <stdint.h>
|
|
#include <inttypes.h>
|
|
|
|
// My code
|
|
#include "math_functions.h"
|
|
#include "hello.h"
|
|
#include "struct_test.h"
|
|
|
|
// Test
|
|
// https://stackoverflow.com/questions/8666378/detect-windows-or-linux-in-c-c
|
|
#ifdef _WIN32
|
|
#include <Windows.h>
|
|
#endif
|
|
|
|
|
|
// TODO Move this into a different project.
|
|
#ifdef _WIN32
|
|
|
|
void guiTest(){
|
|
|
|
}
|
|
|
|
#endif
|
|
|
|
// TODO Look into making a gtk C program
|
|
// https://www.geeksforgeeks.org/how-to-create-gui-in-c-programming-using-gtk-toolkit/
|
|
|
|
int main() {
|
|
char welcomeMsg[] = "Welcome to KCNet";
|
|
// printf(welcomeMsg);
|
|
|
|
uint16_t test = -2;
|
|
// This doesn't work
|
|
// uint16_test();
|
|
|
|
//? 65534? Where is that number coming from
|
|
// https://stackoverflow.com/questions/29112878/how-do-i-printf-a-uint16-t
|
|
// printf("Number: %u", (unsigned int)test);
|
|
|
|
// https://stackoverflow.com/questions/12120426/how-do-i-print-uint32-t-and-uint16-t-variables-value
|
|
// printf("Number: %" PRIu32, test);
|
|
|
|
// mathFunctions();
|
|
print_struct();
|
|
|
|
// printf_example();
|
|
return 0;
|
|
} |