There is a code:
//buf.st_size типа off_t и равен 2147583648 //countProcess типа int и равен 4 //len типа unsigned long long len = buf.st_size / countProcess; printf("len: %llu\n", len); As a result of the division should be 536895912, but instead it turns out some sort of garbage. If instead of buf.st_size substitute 2147583648 then everything is divided normally. Please tell me what is wrong?