Thread: complete command reference?

  1. #1
    Registered User
    Join Date
    May 2004
    Posts
    12

    complete command reference?

    Is there a website out there that has a complete list of commands for the C programming language? Thanks in advance.

  2. #2
    Devil's Advocate SlyMaelstrom's Avatar
    Join Date
    May 2004
    Location
    Out of scope
    Posts
    4,079
    Sent from my iPadŽ

  3. #3
    Registered User
    Join Date
    May 2004
    Posts
    12
    Thank you, looks like just what I was looking for!

  4. #4
    Registered User
    Join Date
    May 2004
    Posts
    12
    One more question (Im pretty new to programming). What command would make it seem like im pressing a key on the keyboard?

  5. #5
    Devil's Advocate SlyMaelstrom's Avatar
    Join Date
    May 2004
    Location
    Out of scope
    Posts
    4,079
    There is no standard way for non buffered input as far as I know. You could look into conio.h and it's getch() and kbhit() functions. Otherwise, windows.h has it's how keypress functions.
    Sent from my iPadŽ

  6. #6
    Registered User
    Join Date
    May 2004
    Posts
    12
    Thanks! ( you really are like einstein )

  7. #7
    Registered User
    Join Date
    May 2004
    Posts
    12
    Actually, I wanted a command that outputs the key (sendkey in vbasic). Sorry to take up so much time.

  8. #8
    Devil's Advocate SlyMaelstrom's Avatar
    Join Date
    May 2004
    Location
    Out of scope
    Posts
    4,079
    Here, this is conio. The I/O is C++, but the keypress functions are the same in C.
    Sent from my iPadŽ

  9. #9
    Registered User
    Join Date
    May 2004
    Posts
    12
    whoa! thats perfect!!! thank you sooo much!

  10. #10
    Sr. Software Engineer filker0's Avatar
    Join Date
    Sep 2005
    Location
    West Virginia
    Posts
    235
    It should be pointed out that there are very few commands in C. What you're talking about are function or procedure calls (usually in a library), or system calls, which are often called via wrapper functions in libraries, depending on the OS and compiler you're using.

    I know that you may see my clarification as nit-picking, but as far as understanding the C programming language (and C++, for that matter), knowing the difference between commands and other types of identifiers is critical. In the original C language definition, there is nothing classified as a "command" that is part of the language. There are keywords, statements, operators, declarations, and expressions. The C pre-processor can be said to have three or four commands, however: "#define", "#undef", and "#include". #if, #else, #elif, and #endif are not exactly commands, though you might decide to call them that.
    Insert obnoxious but pithy remark here

  11. #11
    ATH0 quzah's Avatar
    Join Date
    Oct 2001
    Posts
    14,826
    While it's often fun to jump on filker0, we'll back him on this one. Though it may seem like nit picking, it's really just clarification. If you aren't really clear on an issue, it may come back and bite you later. Thus, while it may seem like we like to argue seemingly pointless issues, it's more of a way of making sure you understand the topic completely. (On an aside, we really do like arguing seemingly pointless issues. Or I do anyway.)

    Take for example the use of char to read a character from a file, versus using an int. It may appear to work fine with a char, but you'll find that isn't the case when you try to test for EOF. There are countless issues you'll come across in C that are like this. Tiny nuances, things defined or not defined by the language. All sources of good fun arguments.


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

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. binary tree complete check
    By ichijoji in forum C++ Programming
    Replies: 5
    Last Post: 11-12-2004, 05:48 PM
  2. How to complete program. Any probs now?
    By stehigs321 in forum C Programming
    Replies: 7
    Last Post: 11-19-2003, 04:03 PM
  3. Doom Lord engine complete!
    By Leeman_s in forum Game Programming
    Replies: 8
    Last Post: 05-12-2002, 12:44 AM
  4. doom lord engine complete!
    By Leeman_s in forum C++ Programming
    Replies: 4
    Last Post: 04-25-2002, 08:41 PM