In my experience strtok() is more trouble than it is worth. For classic parm = value files my solution of choice is http://www.boost.org/doc/libs/1_53_0/doc/html/program_options.html. I have never used it on Z (despite the fact that I do a lot of C++ there) but use it a lot on Windows. Not exactly what I would design, and takes some learning curve, but I find it a good solution. It should compile on Z with few or no problems.
Charles -----Original Message----- From: IBM Mainframe Discussion List [mailto:IBM-MAIN@LISTSERV.UA.EDU] On Behalf Of Scott Ford Sent: Monday, April 22, 2013 3:21 PM To: IBM-MAIN@LISTSERV.UA.EDU Subject: C question All: I need some C help .. I am reading a file and need to Tokenize the file so i can examine the : Parm = Value .. I have tried strtok and works to a certain degree my problem comes when I tried to strcmp the value to chaeck validity ... ---------------------------------------------------------------------- For IBM-MAIN subscribe / signoff / archive access instructions, send email to lists...@listserv.ua.edu with the message: INFO IBM-MAIN