I am new to C and I have a small problem in understanding this scanf()
line:
printf("Enter a message to add to message queue : ");
scanf("%[^n]",sbuf.mtext);
How do I write this statement if I am getting the value from the command line? I think I would have to declare the variable as a string?
Aucun commentaire:
Enregistrer un commentaire