void prtastr(const char* s, int fd, int n);