[comp.lang.c] Function that does what cut does?

jessea@dynasys.UUCP (Jesse W. Asher) (10/06/90)

I was wondering if there was a function in the standard library that
does the same thing that cut does - cut out certain fields out of a
specified file using variable field delimiters.  I didn't want to 
write one without first checking to see if one already existed someplace
I was unaware of.  Thanx for any information.

---*---*---*---*---*---*---*---*---*---*---*---*---*---*---*---*---*---*---*---
      Jesse W. Asher                             Phone: (901)382-1609 
               6196-1 Macon Rd., Suite 200, Memphis, TN 38134
                UUCP: {fedeva,chromc,rutgers}!dynasys!jessea
 -> Editing is a rewording activity.

bengsig@oracle.nl (Bjorn Engsig) (10/08/90)

Article <597@dynasys.UUCP> by jessea@dynasys.UUCP (Jesse W. Asher) says:
|I was wondering if there was a function in the standard library that
|does the same thing that cut does 
Your best try will probably be strtok(), which gives you one field at a
time from a string with a user specified set of delimiters that even can
change as you pick up your fields.
-- 
Bjorn Engsig,	       E-mail: bengsig@oracle.com, bengsig@oracle.nl
ORACLE Corporation   From IBM: auschs!ibmaus!cs.utexas.edu!uunet!oracle!bengsig

	"Stepping in others footsteps, doesn't bring you ahead"