rm pipe c code