grep in C code

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Edems
    New Member
    • Sep 2006
    • 3

    grep in C code

    hi
    can any one help me with the code of grep command as in Unix in C .
    need this for my project. i googled but to no avail.
    thnaks
  • tnt84
    New Member
    • Nov 2006
    • 4

    #2
    sorry I forgot to say that it is string

    Comment

    • Jai Vrat Singh
      New Member
      • Oct 2006
      • 18

      #3
      try using functions generated by lex ..search google for lex

      Comment

      • sicarie
        Recognized Expert Specialist
        • Nov 2006
        • 4677

        #4
        Originally posted by Jai Vrat Singh
        try using functions generated by lex ..search google for lex
        I know there is a C++ regexp library, though I don't know if grep is in there - it's worth checking out for the regular expressions part of grep, though.

        Comment

        Working...