I would like to check a string, using sscanf, for the format: "http://host:Port/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);