I am trying to navigate within the file system using C programming. Here I
use system( “cd [folder]” ) e.g. to navigate into a desired folder. When
this folder exists, system() returns “0”; when it doesn’t exist system()
returns e.g. “256” AND prints out an error message like “sh: cd: [folder] -
no such file or directory” on the active terminal window.
How can I suppress this error output on the screen?