OK I have the following problem:
But the result is not what I have expected. I read that %s will read subsequent characters until a whitespace is found. But I need sth which read until the character I want is find, e.g. : or @.
int temp = 0;
temp = sscanf(Servaddress,"ftp://%s:%s@%s:%d",&user,&password,&ip,&port);
Use a scanset. And supply a width for the strings.
temp = sscanf(Servaddress,"ftp://%255[^:]:%255[^@]@%255[^:]:%d",
Works perfect. Thank you.