Thread: question

  1. #1
    Registered User
    Join Date
    Jul 2003
    Posts
    19

    question

    pls take a look at the following program segment
    #define PF_IDLE 0
    #define PF_GETKEYS 1

    #define KEY_WAKEUP 0
    #define KEY_F1 1
    #define KEY_F2 2
    #define KEY_F3 3

    can anyone tell me what are the numbers at the end of each of the lines for?

  2. #2
    ATH0 quzah's Avatar
    Join Date
    Oct 2001
    Posts
    14,826
    They're for whatever the hell they want them to be for. Any place you see "PF_IDLE" in the program, mentally subsitute it for the value "0".

    Quzah.
    Hope is the first step on the road to disappointment.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Alice....
    By Lurker in forum A Brief History of Cprogramming.com
    Replies: 16
    Last Post: 06-20-2005, 02:51 PM
  2. Debugging question
    By o_0 in forum C Programming
    Replies: 9
    Last Post: 10-10-2004, 05:51 PM
  3. Question about pointers #2
    By maxhavoc in forum C++ Programming
    Replies: 28
    Last Post: 06-21-2004, 12:52 PM
  4. Question...
    By TechWins in forum A Brief History of Cprogramming.com
    Replies: 16
    Last Post: 07-28-2003, 09:47 PM
  5. Question, question!
    By oskilian in forum A Brief History of Cprogramming.com
    Replies: 5
    Last Post: 12-24-2001, 01:47 AM