title: How to Do a sscanf Up to 70 Characters or a Newline
body: <p>I would like to use sscanf to read up the 70 characters of a string or to the newline character, which ever comes first. I understand that %[^\n] allows me to read until a newline character is reached, but how would I go about of reading a maximum of 70 characters?</p>