| 4 | #include <errno.h> |
| 5 | |
| 6 | inline static long OctToDec(char* str, int size) { |
| 7 | long n = 0; |
| 8 | while (size-- && *str) { |
| 9 | n <<= 3; |
| 10 | n |= (*str - '0') & 0x7; |
| 11 | str++; |
| 12 | } |
| 13 | return n; |
| 14 | } |
| 15 | |
| 16 | inline static long GetSize(char* size){ // Get size of file in blocks |
| 17 | long sz = OctToDec(size, 12); |
no outgoing calls
no test coverage detected