a upd sample unix /win32 c code