View Single Post
Old 12-28-2013, 02:04 AM   #16
DarkStar
Human being with feelings
 
DarkStar's Avatar
 
Join Date: May 2006
Location: Surrey, UK
Posts: 19,681
Default

^^^^
Thank you jnif for an example. As I understand it:

Code:
For each line in the file:
    read it into notename_str
    do something magic to it, extracting data into notename_note and notename_name
    if notename_note is in range:
        copy the name into nn_name
        insert the nn_name into the indexed note_names array
        increment the nn_name
Is that right?

Some questions:
(a) that match() syntax is a mystery to me - where are the possibilities explained? Justin's notes above did not cover the options you're using
(b) why is the strcpy() needed? Why not just use notename_name?
(c) why increment the nn_name? I's text not a number, isn't it?
__________________
DarkStar ... interesting, if true. . . . Inspired by ...
DarkStar is offline   Reply With Quote