Thread: How to get pointer to char to compare its ascii value pointed to

Threaded View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Registered User
    Join Date
    Oct 2001
    Posts
    28

    How to get pointer to char to compare its ascii value pointed to

    how do I get a pointer to a const char to compare the ascii value of the char to which it is pointed, with another similar expression.
    EX: const char *string1 == const char *string2;
    I need to increment these and at the point where the comparison fails return a < or > or ==.
    Last edited by rc7j; 10-28-2001 at 11:14 PM.
    rc7j

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. The Interactive Animation - my first released C program
    By ulillillia in forum A Brief History of Cprogramming.com
    Replies: 48
    Last Post: 05-10-2007, 02:25 AM
  2. Replies: 7
    Last Post: 06-16-2006, 09:23 PM
  3. Need help understanding info in a header file
    By hicpics in forum C Programming
    Replies: 8
    Last Post: 12-02-2005, 12:36 PM
  4. towers of hanoi problem
    By aik_21 in forum C Programming
    Replies: 1
    Last Post: 10-02-2004, 01:34 PM
  5. I'm having a problem with data files.
    By OmniMirror in forum C Programming
    Replies: 4
    Last Post: 05-14-2003, 09:40 PM