Hi, I'm just wondering, what's so bad about using scanf for strings. Like every person I speak to says don't do it, I'd like to know why . Also, as a replacement, if I'm needing to read strings from standard in, can I use something like this?:
Which, if I'm right, will copy the users input from standard in into the cArray character array. Not sure if my use of strcopy is 100% accurate in the above example though. Thanks.Code:strcopy(cArray,"%s", stdin);