I want to input a few strings then two integers. Whilst the strings are separated by \'|\', the integers are kept apart by a \'.\'.
Looking around online I have seen s
You must use either [] or s construct, but not both and your format string must incluse the separators.
[]
s
So you should write something like :
sscanf(str, "%[^|]|%[^|]|...",...)