Thread: segmentation fault... first time with unix...

  1. #16
    Registered User
    Join Date
    Sep 2008
    tabstop it is DONE!!!
    THANKS A TON BRO... seriously thank you veryyy much...!
    Here's the perfect run!

    mynix> hey
    mynix> - 11No such thing!
    mynix> cd
    mynix> - Done!
    mynix> cd -d ad
    mynix> - Done!
    mynix> cd asdg
    mynix> - Done!
    mynix> pwd
    mynix> - Done!
    mynix> pwd as
    mynix> - 11No such thing!
    mynix> man dsa
    mynix> - Done!
    mynix> man -sdf
    mynix> - 10No such thing!
    mynix> man -d ewr
    mynix> - Done!
    mynix> man -d wer ga
    mynix> - 8No such thing!
    mynix> exit
    Program exited normally.

  2. #17
    Kernel hacker
    Join Date
    Jul 2007
    Farncombe, Surrey, England
    Note that in DOS-mode, accessing NULL is not trapped by the processor like it is in Unix or Windows. So using NULL as a source just gives you random data. Using NULL as a destination will change the interrupt vector table, which can be rather catastrophic to the environment, but will not crash the program then and there. This is due to the fact that DOS is an unprotected environment.

    This is a VERY good reason NOT to use Turbo C for anything - and it being 10+ years old is another good reason...

    Compilers can produce warnings - make the compiler programmers happy: Use them!
    Please don't PM me for help - and no, I don't do help over instant messengers.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Why am I getting segmentation fault on this?
    By arya6000 in forum C++ Programming
    Replies: 6
    Last Post: 10-12-2008, 06:32 AM
  2. Re: Segmentation fault
    By turkish_van in forum C Programming
    Replies: 8
    Last Post: 01-20-2007, 05:50 PM
  3. Replies: 7
    Last Post: 12-10-2004, 01:58 AM
  4. Segmentation fault...
    By alvifarooq in forum C++ Programming
    Replies: 14
    Last Post: 09-26-2004, 12:53 PM
  5. strcat segmentation fault
    By captain-cat in forum C Programming
    Replies: 3
    Last Post: 07-20-2004, 10:29 AM