E
ern
I have a <char * Buffer> with the following data:
"
; This is a comment
preprocess:
play music ; comment
start:
; This is a comment
turn on
fast forward
repeat:
"
I want to capture each line one at a time, determine if there is a
comment (and where it is, because some lines may have a command and a
comment), then execute the command. I was looking at strtok( , ), but
I just want to get a line one at a time. Is there some kind of
"getline( )" function ? Anybody have design tips for this problem ?
Thanks !
"
; This is a comment
preprocess:
play music ; comment
start:
; This is a comment
turn on
fast forward
repeat:
"
I want to capture each line one at a time, determine if there is a
comment (and where it is, because some lines may have a command and a
comment), then execute the command. I was looking at strtok( , ), but
I just want to get a line one at a time. Is there some kind of
"getline( )" function ? Anybody have design tips for this problem ?
Thanks !