Thread: Need help fixing segmentation fault

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1
    and the Hat of Guessing tabstop's Avatar
    Join Date
    Nov 2007
    Posts
    14,336
    Quote Originally Posted by Avenger625 View Post

    And I will be obliged if 'you' give me the answer[I checked the link 'you' posted, but still clueless]-
    Why scanf() instead of fscanf(), when his source of input is a file and not standard input stream(assuming its not redirected)???
    He's already admitted that was a misread/flub.

  2. #2
    Registered User
    Join Date
    Feb 2011
    Posts
    52
    Quote Originally Posted by CommonTater View Post
    Because many library documents lump scanf(), fscanf() and sscanf() together... Looking one up usually gets you the others too...

    It was a mistake... it happens sometimes.
    Quote Originally Posted by tabstop View Post
    He's already admitted that was a misread/flub.

    I'm sorry...I somehow skipped it. I never wanted to disect/critisize his mistake....I'm really sorry!!!

  3. #3
    Registered User
    Join Date
    Sep 2011
    Posts
    16
    Thanks everybody for all your help! I really appreciate it!

  4. #4
    Banned
    Join Date
    Aug 2010
    Location
    Ontario Canada
    Posts
    9,547
    Quote Originally Posted by Avenger625 View Post
    I'm sorry...I somehow skipped it. I never wanted to disect/critisize his mistake....I'm really sorry!!!
    Not to worry... we all make mistakes. The real trick is to learn from them.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Segmentation Fault
    By tlman12 in forum C Programming
    Replies: 1
    Last Post: 10-29-2010, 03:57 PM
  2. Segmentation fault
    By Miffeltoffel in forum C Programming
    Replies: 8
    Last Post: 10-21-2010, 03:55 AM
  3. Re: Segmentation fault
    By turkish_van in forum C Programming
    Replies: 8
    Last Post: 01-20-2007, 05:50 PM
  4. Segmentation Fault
    By Haos in forum C Programming
    Replies: 2
    Last Post: 09-18-2004, 08:00 PM
  5. segmentation fault and memory fault
    By Unregistered in forum C Programming
    Replies: 12
    Last Post: 04-02-2002, 11:09 PM