added test client

This commit is contained in:
Arthur-Coppey
2021-07-08 13:42:32 +02:00
parent c3418f2ec4
commit a9da4251e2
9 changed files with 112 additions and 36 deletions
+24
View File
@@ -0,0 +1,24 @@
//
// Created by k0rb4k on 30/03/2021.
//
#include "quote.h"
void getRandomQuote(char quote[1024]) {
// TODO: true random between 0 and number of lines in file
int rand = 0;
getQuote(rand, quote);
}
void getQuote(int line, char quote[1024]) {
FILE* list;
// char quote[1024];
// TODO: get specified x line
list = fopen("quotes.txt", "r");
fgets(quote, 1024, list);
fclose(list);
}