5

Making my first larger scale project in C...

Every time I take a look at my code, I realise I should implement better error handling here and there.

And then every time I try to break my programme with erroneous input, it actually blows up, despite all my effort to prevent that 😖😖

Comments
  • 1
    this is me every single time. most of the time i get segfaults. its sometimes better to rewrite the code rather than debugging it
  • 1
    @IllSlapU I'm aware of that, but there are some many ways my program could get fucked up... Over-/underflow, accidentally passed NULL pointers to functions, not enough memory allocated by malloc()... Also, I need to to read and write to files and the file could be full of corrupt lines but the programme should be able to handle that... It's very hard to write stable, error prone code in C :/
  • 1
    @nickj It's not like I couldn't fix my problems. Maybe in 5-6 weeks, I'd have written code that's almost completely prone to errors. The only problem is that I have to come up with a working programme by this Sunday (deadline) 😂
Add Comment