Thread: please test my code!!!

  1. #1
    spurious conceit MK27's Avatar
    Join Date
    Jul 2008
    Location
    segmentation fault
    Posts
    8,300

    please test my code!!!

    I am a long time redhat user and I need someone else running linux/GNU to compile and test a brief piece of code for me. I posted it this morning on the C programming board, and I've also posted it on comp.lang.c and comp.unix.programmer. Altho I got I number of helpful comments, formatting tips, et. al. no one actually addressed the question i actually asked or tested the script itself -- I would like to know if it produces the same (unexpected, unexplained) results i got and why YOU think that happened, since obviously the reason for the error is not apparent to those who just scanned it.

    Anyway the original post is http://cboard.cprogramming.com/showthread.php?t=104964.

    please help!!
    Last edited by MK27; 07-09-2008 at 07:52 PM. Reason: punctuation

  2. #2
    Woof, woof! zacs7's Avatar
    Join Date
    Mar 2007
    Location
    Australia
    Posts
    3,459
    Or get a small distro and try it out for yourself, it'd be about a 50mb download. Try Feather Linux, Puppy or Arch (I say Arch ) -- to name a few

    Not to mention if you had any other 'requests' in the future, you could run it for yourself. Rather than making demands.

    Or use Cygwin, http://www.cygwin.com/ (closer to Linux than Windows )
    Last edited by zacs7; 07-09-2008 at 07:30 PM.

  3. #3
    spurious conceit MK27's Avatar
    Join Date
    Jul 2008
    Location
    segmentation fault
    Posts
    8,300
    There is a misunderstanding -- I AM USING LINUX, gcc 4.1.2 & 3.36, I just want to confirm that the problem i am having is not some form of file system corruption here -- in other words the code i wrote may work flawlessly for you.

  4. #4
    and the hat of int overfl Salem's Avatar
    Join Date
    Aug 2001
    Location
    The edge of the known universe
    Posts
    39,660
    One thread is enough.
    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.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Obfuscated Code Contest
    By Stack Overflow in forum Contests Board
    Replies: 51
    Last Post: 01-21-2005, 04:17 PM
  2. test code
    By egomaster69 in forum C Programming
    Replies: 3
    Last Post: 12-20-2004, 07:04 PM
  3. Code to test if a tree is balanced
    By rahuls in forum C Programming
    Replies: 1
    Last Post: 03-20-2003, 02:41 PM
  4. Seems like correct code, but results are not right...
    By OmniMirror in forum C Programming
    Replies: 4
    Last Post: 02-13-2003, 01:33 PM
  5. Replies: 4
    Last Post: 01-16-2002, 12:04 AM