Functions in src/od-dos/misc