c function in machine context and console