Timeline for Finding the longest word without these characters
Current License: CC BY-SA 4.0
8 events
when toggle format | what | by | license | comment | |
---|---|---|---|---|---|
Jan 14, 2019 at 11:55 | history | edited | Heslacher | CC BY-SA 4.0 |
deleted 1 character in body
|
Jan 12, 2019 at 19:28 | comment | added | Edward |
I've updated my answer to show error handling examples. Also, fread is defined in <stdio.h> and since fread returns a size_t , we know it is already defined once we have <stdio.h> . See this: en.cppreference.com/w/c/types/size_t
|
|
Jan 12, 2019 at 19:27 | vote | accept | Aykhan Hagverdili | ||
Jan 12, 2019 at 19:26 | history | edited | Edward | CC BY-SA 4.0 |
added example of error handling
|
Jan 12, 2019 at 19:25 | comment | added | Aykhan Hagverdili |
Use only the required headers: I used <stddef.h> for size_t and <unistd.h> for fread . Are these not the correct headers?
|
|
Jan 12, 2019 at 19:22 | comment | added | Aykhan Hagverdili | Add error handling: I would really appreciate a few pointers to sources about error handling in such cases; Best practices, best design patterns | |
Jan 12, 2019 at 19:20 | comment | added | Aykhan Hagverdili | Great points, agreed with most of them. Quick questions: | |
Jan 12, 2019 at 16:42 | history | answered | Edward | CC BY-SA 4.0 |