I wrote the following code, what I intend to do is to use '!' as delimiter to save string to different variables, however, I found that all the characters include '!' save to first variable "name", would you please give me a hand. Thanks a lot.
scanf("%s!%s!%s!", &name, &address, &phone);
printf("%s %s %s", name, address, phone);