Thread: If stantment

  1. #1
    Registered User
    Join Date
    Sep 2001
    Posts
    7

    If stantment

    How do you write a IF statement that will check for a new line character......

    Thanks
    Squirrelly

  2. #2
    Skunkmeister Stoned_Coder's Avatar
    Join Date
    Aug 2001
    Posts
    2,572
    char whatever;
    if (whatever=='\n')
    {
    // do whatever
    }
    Free the weed!! Class B to class C is not good enough!!
    And the FAQ is here :- http://faq.cprogramming.com/cgi-bin/smartfaq.cgi

Popular pages Recent additions subscribe to a feed
Website Security Test