#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include "aux_tools.h"
Functions | |
SSIZE_T | tsk_parse_offset (TSK_TCHAR *offset) |
Parse a string in the cnt@size or cnt format and return the byte offset. | |
int | tsk_parse_inum (const TSK_TCHAR *str, INUM_T *inum, uint32_t *type, uint16_t *id, int *id_used) |
Convert a string to an inode, type, and id pair. |
int tsk_parse_inum | ( | const TSK_TCHAR * | str, | |
INUM_T * | inum, | |||
uint32_t * | type, | |||
uint16_t * | id, | |||
int * | id_used | |||
) |
Convert a string to an inode, type, and id pair.
This assumes the string is either: INUM, INUM-TYPE, or INUM-TYPE-ID
[in] | str | Input string to parse |
[out] | inum | Pointer to location where inode can be stored. |
[out] | type | Pointer to location where type can be stored |
[out] | id | Pointer to location where id can be stored |
[out] | id_used | Pointer to location where the value can be set to 1 if the id was set (to differentiate between meanings of 0). |
SSIZE_T tsk_parse_offset | ( | TSK_TCHAR * | offset | ) |
Parse a string in the cnt@size or cnt format and return the byte offset.
[in] | offset | The string version of the offset |