02 May, 2006
Parsing Text Output in C
I'm currently working on a better routine to parse the output of /proc/mdstat in Mondo Rescue to get RAID to work on Debian.
Fiddling around with pointers and doing nasty things in general finally got me to think that there must be a better way.
I'm sure everyone else is in the know, but I was quite happy to find the fine GNU C Library Manual where in turn I found strtok() which allows for much cleaner and safer code. Cool.
Also found www.snippets.org. Cool, too.
Fiddling around with pointers and doing nasty things in general finally got me to think that there must be a better way.
I'm sure everyone else is in the know, but I was quite happy to find the fine GNU C Library Manual where in turn I found strtok() which allows for much cleaner and safer code. Cool.
Also found www.snippets.org. Cool, too.