feat(build): test enet links correctly

This commit is contained in:
illyum 2024-08-30 11:48:34 -06:00
parent 59bdc552e3
commit f759fd3302
2 changed files with 17 additions and 2 deletions

View File

@ -1,6 +1,13 @@
#include <stdio.h>
#define ENET_IMPLEMENTATION
#include <enet.h>
int main() {
printf("This is the farm fighter client!\n");
return 0;
if (enet_initialize() != 0) {
printf("Error init enet\n");
return EXIT_FAILURE;
}
return EXIT_SUCCESS;
}

View File

@ -1,8 +1,16 @@
#include <stdio.h>
#define ENET_IMPLEMENTATION
#include <enet.h>
int main() {
printf("Server starting...\n");
if (enet_initialize() != 0) {
printf("Error init enet\n");
return EXIT_FAILURE;
}
printf("Press any key to exit...\n");
scanf_s("0");
return 0;
return EXIT_SUCCESS;
}