sscanf vs istringstream

This is a discussion on sscanf vs istringstream within the C++ Programming forums, part of the General Programming Boards category; What is the istringstream equivalent of sscanf and checking if 4 fields have been read in?
Code:
if (sscanf(s, "%d ...