Upload files to "OauthWebServer/src"
This commit is contained in:
16
OauthWebServer/src/main.c
Normal file
16
OauthWebServer/src/main.c
Normal 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;
|
||||
}
|
||||
9
OauthWebServer/src/webserver.c
Normal file
9
OauthWebServer/src/webserver.c
Normal 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;
|
||||
}
|
||||
Reference in New Issue
Block a user