Upload files to "OauthWebServer/src"

This commit is contained in:
2025-12-05 19:41:03 +00:00
parent 2becc2e43d
commit 58138a7af6
2 changed files with 25 additions and 0 deletions

16
OauthWebServer/src/main.c Normal file
View File

@@ -0,0 +1,16 @@
/*And form the ashes it was born a gain anew, a Pheonix rose in Great flame*/
#include "webserver.h"
int main(int argc, char *argv[]){
if(argc != 3){
printf("Useahe: %S <port> <htmlDirectory>", argv[0]);
return 1;
}
int port = atio(argv[1]);
const char *directory = argv[2];
startServer(port, directory);
return 0;
}

View File

@@ -0,0 +1,9 @@
#include "webserver.h"
// loads files into memory
char *loadFile(const char *path, long *sizeOut){
FILE *f = fopen(path, "rb");
if(!f) return NULL;
}