* Return the uncompressed length of a packed data block, or a * negative error code. */
| 71 | * negative error code. |
| 72 | */ |
| 73 | long rnc_ulen (void *packed) { |
| 74 | unsigned char *p = (unsigned char*) packed; |
| 75 | if (blong (p) != RNC_SIGNATURE) |
| 76 | return RNC_FILE_IS_NOT_RNC; |
| 77 | return blong (p+4); |
| 78 | } |
| 79 | |
| 80 | /* |
| 81 | * Decompress a packed data block. Returns the unpacked length if |