I have a code that would like to display the message in the center between the bars. I looked at the C functions and found nothing that would allow me this.
sprintf(message,"============================================================");
send_message(RED, message);
sprintf(message, "[ Welcome %s ]", p->client_name);
send_message(RED, message);
sprintf(message,"============================================================");
send_message(RED, message);
I am looking for a way to show the Welcome message by counting the size of the user name always show centralized. Example:
example 1:
=============================================
Welcome Carol
=============================================
example 2:
=============================================
Welcome Giovanna
=============================================
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…