stat,cp using c language