Skip to content
Snippets Groups Projects
Commit 5b47be4a authored by T.Wadi's avatar T.Wadi
Browse files

PrintLogo function implimented

parent bb10488a
No related branches found
No related tags found
No related merge requests found
......@@ -44,4 +44,26 @@ int askYesOrNo(char *Question)
clearBuffer();
} while ((Input != 'j') && (Input != 'J') && (Input != 'n') && (Input != 'N'));
return ((Input == 'j') || (Input == 'J'));
}
\ No newline at end of file
}
/**********************************************************/
/**********************************************************/
void PrintLogo ()
{
FILE *titel = fopen("titel.txt","r");
char output[150];
if(titel)
{
while(!feof(titel)){
fgets(output,150,titel);
printf("%s",output);
}
puts("\n");
}
else {
puts("Logo not found\n");
exit(1);
}
}
/**********************************************************/
/**********************************************************/
\ No newline at end of file
......@@ -4,6 +4,6 @@ void clearScreen();
void clearBuffer();
void waitForEnter();
int askYesOrNo(char*);
void PrintLogo ();
#endif // TOOLS_H_INCLUDED
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment