#include <stdint.h>
Go to the source code of this file.
◆ TCMDEXEC_fs_count_hex_occurrences()
| uint8_t TCMDEXEC_fs_count_hex_occurrences |
( |
const char * | args_str, |
|
|
char * | response_output_buf, |
|
|
uint16_t | response_output_buf_len ) |
Count hex byte sequence occurrences in a file.
- Parameters
-
| args_str |
- Arg 0: File path as string (haystack)
- Arg 1: Hex string to search for (e.g. "DEADBEEF")
|
◆ TCMDEXEC_fs_count_str_occurrences()
| uint8_t TCMDEXEC_fs_count_str_occurrences |
( |
const char * | args_str, |
|
|
char * | response_output_buf, |
|
|
uint16_t | response_output_buf_len ) |
Count string occurrences in a file.
- Parameters
-
| args_str |
- Arg 0: File path as string (haystack)
- Arg 1: Needle string to search for
|
◆ TCMDEXEC_fs_find_nth_hex_occurrence()
| uint8_t TCMDEXEC_fs_find_nth_hex_occurrence |
( |
const char * | args_str, |
|
|
char * | response_output_buf, |
|
|
uint16_t | response_output_buf_len ) |
Find Nth hex byte sequence occurrence in a file.
- Parameters
-
| args_str |
- Arg 0: File path as string (haystack)
- Arg 1: Hex string to search for
- Arg 2: N (1-based)
|
◆ TCMDEXEC_fs_find_nth_str_occurrence()
| uint8_t TCMDEXEC_fs_find_nth_str_occurrence |
( |
const char * | args_str, |
|
|
char * | response_output_buf, |
|
|
uint16_t | response_output_buf_len ) |
Find Nth string occurrence in a file.
- Parameters
-
| args_str |
- Arg 0: File path as string (haystack)
- Arg 1: Needle string to search for
- Arg 2: N (1-based)
|