Thread: Infinite loop

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

    Infinite loop

    this code works in UNIX, and im trying to convert it into a windows program. so anyways when i execute the function

    void do_commands(FILE *input) it goes into an infinite loop.

    in the main program we call it like this

    Code:
    do_commands(stdin);
    and then it goes into an infinite loop, I dont understand why.

    the code is here in this site once again:

    http://sourcepost.sytes.net/sourcevi...ource_id=14723

    the function is on lines 00220: to 00390:

    a lot of it is documentation.

    also when it hits the never ending loop, it keeps outputing

    send() failed with error 10053.

    hope someone can help me.

  2. #2
    Registered User
    Join Date
    May 2004
    Posts
    215
    I got it to work. So nevermind

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Replies: 2
    Last Post: 06-14-2009, 11:24 PM
  2. Cosine fucntion and infinite loop.
    By youareafever in forum C Programming
    Replies: 2
    Last Post: 11-07-2008, 04:45 AM
  3. Infinite Loop with GetAsyncKeyState
    By guitarist809 in forum Windows Programming
    Replies: 1
    Last Post: 04-18-2008, 12:09 PM
  4. Switch statement = infinite loop
    By Lucid003 in forum C++ Programming
    Replies: 10
    Last Post: 10-10-2005, 12:46 AM
  5. stays in loop, but it's not an infinite loop (C++)
    By Berticus in forum C++ Programming
    Replies: 8
    Last Post: 07-19-2005, 11:17 AM