Hi All,
I have got a file with the following format :
tag1 value1 tag2 value 2 tag3 value3 (end of record)
tag4 value4 ...... tag10 value10 (end of record)
....
end of file
I wrote a perl script that parses this file, fine but slow.
How can I emulate perl's split function in C, to split each line of this file base on a separator (space in this case). Or how can I integrate perl in c code (HP UX) or anyone has a suggestion for me ? I'm not that familiar with C and it's IO functions.
Thanx
I have got a file with the following format :
tag1 value1 tag2 value 2 tag3 value3 (end of record)
tag4 value4 ...... tag10 value10 (end of record)
....
end of file
I wrote a perl script that parses this file, fine but slow.
How can I emulate perl's split function in C, to split each line of this file base on a separator (space in this case). Or how can I integrate perl in c code (HP UX) or anyone has a suggestion for me ? I'm not that familiar with C and it's IO functions.
Thanx