segmentation fault... first time with unix...

This is a discussion on segmentation fault... first time with unix... within the C Programming forums, part of the General Programming Boards category; tabstop it is DONE!!! THANKS A TON BRO... seriously thank you veryyy much...! Here's the perfect run! Code: mynix> hey ...

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

    Code:
    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
    Location
    Farncombe, Surrey, England
    Posts
    15,677
    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...

    --
    Mats
    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.

Page 2 of 2 FirstFirst 12
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, 07: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, 01:53 PM
  5. strcat segmentation fault
    By captain-cat in forum C Programming
    Replies: 3
    Last Post: 07-20-2004, 11:29 AM

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