ParentFull threadGaelan·I think printf has a %n specifier that writes the number of characters so far to a pointer passed in.View on HN