This commit is contained in:
stmctommyau 2023-09-25 11:40:23 +08:00
parent d74170536c
commit 96dababb9c
No known key found for this signature in database
GPG Key ID: 87B1991E1277F054

View File

@ -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