🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

1 total messages Started by Henry Zektser Sat, 13 May 2000 00:00
more strtok()
#91
Author: Henry Zektser
Date: Sat, 13 May 2000 00:00
10 lines
1205 bytes
Ok, I know I'm harassing everyone with this one function, but nothing else
gives me any trouble. At the moment I'm using ifstream::getline() to read a
file line by line into a char*, which I'm using a strtok() call on, with the
separators being ' \n' (space and newline) and maxchars being far bigger
than the width of the file. It works fine, unless I leave a blank line (hit
enter twice in notepad, and save). Then it gives me an access violation
error. What exactly does getline return in this case, and/or why isnt strtok
handling it correctly?

H
Thread Navigation

This is a paginated view of messages in the thread with full content displayed inline.

Messages are displayed in chronological order, with the original post highlighted in green.

Use pagination controls to navigate through all messages in large threads.

Back to All Threads