zsh bus error on C code under Monterey
I have some C99 code that worked fine under Catalina in XCODE and in TERMINAL
The code opens an existing file and reads the content to EOF
The code the creates a file and writes a standard message to the created file
I migrated to a new Macbook Pro with Monterey... and the same code
always displays the correct file name to open but then fails to open it, displaying
a NULL FILE pointer and "zsh: bus error" with the full program pathname
The code is executing under TERMINAL and the code executable an file are in the same folder