- 1

sscanf

what is sscanf? what does it do?

27th Dec 2018, 7:34 AM
Eva
Eva - avatar
3 ответов
+ 5
Below is the format of sscanf: int sscanf(char *str, char *fmt, arg1, arg2,...) sscanf scans the provided str according to the format in fmt, and stored the resulting values through arg1, arg2, etc. These arguments must be pointers. https://code.sololearn.com/cRaErVs2XzgU/?ref=app
27th Dec 2018, 9:15 AM
Calviղ
Calviղ - avatar
+ 3
Here it is: https://www.sololearn.com/learn/C/2937/?ref=app Instead of standard input (stdin), it reads data from the source string, which is provided as the first argument. The other arguments are just like that of scanf.
27th Dec 2018, 7:59 AM
Kishalaya Saha
Kishalaya Saha - avatar
+ 1
Its like scanf but it read from a string and not from stdin http://www.cplusplus.com/reference/cstdio/sscanf/
27th Dec 2018, 8:11 AM
KrOW
KrOW - avatar