Tech Off Post

Single Post Permalink

View Thread: Problem with strcmp in C
  • User profile image
    Blue​Firehawk02

    BenZillaTheSecond wrote:
    Ok Smiley But I only want to compare a single char

    // streamlined further
    while((c = fgetc(file)) != EOF)
    {
      // check for terminator and check whats in the cell
      if(c == ',')
         print("hi");
    }