stdin + (ctrl+z), how i detect it?

This is a discussion on stdin + (ctrl+z), how i detect it? within the C Programming forums, part of the General Programming Boards category; Some days ago i came here asking about the CRC and other small things... well, that part of the project ...

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

    stdin + (ctrl+z), how i detect it?

    Some days ago i came here asking about the CRC and other small things... well, that part of the project is ready and the CRC is working fine..

    but at the end of the projct there is a small line of the text saying something like this: "If the user doen´t give us a file when invoquing the CRC we have to use the stdin to read the text that the user is tipyin, and then appply the CRC to that text. The user will finish typing when pressing CTRL+Z (^Z in the DOS console)"

    How do I dettect the CTRL+Z when reading one char at time from stdin, it's beacause i've got to pass it on to another file to apply the CRC on this text....

    And one smallest doubt, when I try to make some modules just not to include alll the project in only one, the computer doesn´t find them... (modules are one for the input, another for the output and one last having the CRC check), where do i have to put them? [I'm usin Bloodshed Dev C++] or how do i've got to do to specifie the address of the module in my PC when "including" them in the main modulE??

    THANKS
    fran

  2. #2
    and the hat of wrongness Salem's Avatar
    Join Date
    Aug 2001
    Location
    The edge of the known universe
    Posts
    32,490
    I just told you in your other post
    CTRL+Z? How to check it?
    If you dance barefoot on the broken glass of undefined behaviour, you've got to expect the occasional cut.
    If at first you don't succeed, try writing your phone number on the exam paper.
    I support http://www.ukip.org/ as the first necessary step to a free Europe.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Checking stdin for input
    By hawaiian robots in forum C Programming
    Replies: 7
    Last Post: 05-19-2009, 09:06 AM
  2. Another syntax error
    By caldeira in forum C Programming
    Replies: 31
    Last Post: 09-05-2008, 01:01 AM
  3. Replies: 2
    Last Post: 07-12-2008, 12:00 PM
  4. Replies: 5
    Last Post: 11-20-2003, 12:27 AM
  5. stdin question
    By oomen3 in forum C Programming
    Replies: 6
    Last Post: 02-19-2003, 01:52 PM

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21