Hello,
I would like to check a string, using sscanf, for the format: "http://hostort/path"
I can't seem to figure it out. What format should I use?
I currently have the following, but it returns 1 instead of 3
Any idea?Code:sscanf(someString,"http://%s:%d/%s", &host, port, &path);
Thanks.
Edit: format isCode:http://host:port/path




ort/path"
Reply With Quote