Results 1 to 1 of 1

Thread: sscanf issues

Threaded View

  1. #1

    Thread Starter
    Hyperactive Member Stiletto's Avatar
    Join Date
    Aug 2002
    Location
    Jerusalem, Israel
    Posts
    287

    Question sscanf issues

    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
    Code:
    sscanf(someString,"http://%s:%d/%s", &host, port, &path);
    Any idea?
    Thanks.

    Edit: format is
    Code:
    http://host:port/path
    Last edited by Stiletto; Dec 17th, 2011 at 05:07 AM.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width