eecs280staff / tutorials

Tools and tutorials
https://eecs280staff.github.io/tutorials/
Other
5 stars 4 forks source link

Xcode input redirection silent fail #116

Closed awdeorio closed 1 year ago

awdeorio commented 1 year ago

Xcode will silently fail if configured to redirect input from a file that does not exist. The solution is:

assert(freopen("main_test.in", "r", stdin));