4 ms·I think printf has a %n specifier that writes the number of characters so far to a pointer passed in.by Gaelan 5y agoI think printf has a %n specifier that writes the number of characters so far to a pointer passed in.