mirror of
https://github.com/n05la3/cmdtypist
synced 2024-11-05 21:20:23 +00:00
function to change the current user
This commit is contained in:
parent
13724ea46e
commit
a3e9c2b7bf
@ -388,3 +388,17 @@ extern void sleepf(int time_to_sleep)//implementing a sleep function
|
||||
sleep(time_to_sleep);
|
||||
#endif
|
||||
}
|
||||
void make_current(FILE* file_to_remove_from)
|
||||
{
|
||||
|
||||
char ch;
|
||||
fseek(file_to_remove_from,-300L,SEEK_END);
|
||||
while((ch=getc(file_to_remove_from))!=EOF)
|
||||
{
|
||||
if(ch=='-'||ch=='|'||ch=='+')
|
||||
{
|
||||
fseek(file_to_remove_from,-1L,SEEK_CUR);
|
||||
fputc(' ',file_to_remove_from);//over written current lesson with new one to become current
|
||||
}
|
||||
}
|
||||
}
|
Loading…
Reference in New Issue
Block a user