-
Автор темы
- #1
sample:
Output:
Pattern length: 10
Pattern bytes: FF FF AA 15 FF 00 00 22 FF 00
Mask bytes: FF FF FF FF FF 00 00 FF FF 00
C:
int main()
{
pattern_data data = parse_pattern("FF FF AA 15 FF ?? ?? 22 FF ??");
printf("Pattern length: %zu\n", data.length);
printf("Pattern bytes: ");
for (size_t i = 0; i < data.length; i++) {
printf("%02X ", data.pattern[i]);
}
printf("\nMask bytes: ");
for (size_t i = 0; i < data.length; i++) {
printf("%02X ", data.mask[i]);
}
printf("\n\n");
free_pattern_data(&data);
}
Output:
Pattern length: 10
Pattern bytes: FF FF AA 15 FF 00 00 22 FF 00
Mask bytes: FF FF FF FF FF 00 00 FF FF 00
Вложения
-
1.1 KB Просмотры: 4