Re: procfs problems

Gerd Knorr (kraxel@cs.tu-berlin.de)
Thu, 1 May 1997 10:35:00 +0200


In article <Pine.LNX.3.95.970430180438.6078A-100000@lorien.ml.org>,
you wrote:

>Sorry for this, but how hard is it to parse fields in c or bash anyhow?

Not a problem. Have a look at sscanf(3), you can parse a line (even
relatively complex files like /proc/net/tcp) with one call to sscanf.

Gerd

-- 
Gerd Knorr <kraxel@cs.tu-berlin.de> |  Where these funny chars come from ???
http://www.cs.tu-berlin.de/~kraxel/ |  [ ... ] Aha, the debug code is broken!