In fact, probably better to set last_nl to <code> strrchr(promiser, '\n') + 1; </code>