fix
This commit is contained in:
parent
d74170536c
commit
96dababb9c
2
utils.h
2
utils.h
@ -35,7 +35,7 @@ char * welcome_message(void * ptr){ //cross compatible
|
||||
if(!ptr){//if fp is NULL
|
||||
return "><Welcome to the Student Union POS system><\n";
|
||||
}
|
||||
if(strlen(ptr)){// if ptr a string or file
|
||||
if(((FILE*)ptr)!=stdout){// if ptr a string or stdout
|
||||
sprintf(ptr,"><Welcome to the Student Union POS system><\n");//welcome message
|
||||
}else{
|
||||
fprintf(ptr,"><Welcome to the Student Union POS system><\n");//welcome message
|
||||
|
Loading…
x
Reference in New Issue
Block a user