MCPcopy Index your code
hub / github.com/cgsecurity/testdisk / check_command

Function check_command

src/common.c:448–459  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

446}
447
448int check_command(char **current_cmd, const char *cmd, const size_t n)
449{
450 const int res=strncmp(*current_cmd, cmd, n);
451 if(res==0)
452 {
453 (*current_cmd)+=n;
454 /*@ assert valid_read_string(*current_cmd); */
455 return 0;
456 }
457 /*@ assert valid_read_string(*current_cmd); */
458 return res;
459}
460
461void skip_comma_in_command(char **current_cmd)
462{

Callers 15

add_partition_gpt_cliFunction · 0.85
ntfs_boot_sector_commandFunction · 0.85
is_no_confirm_commandFunction · 0.85
photorecFunction · 0.85
add_partition_mac_cliFunction · 0.85
interface_writeFunction · 0.85
file_select_cliFunction · 0.85
menu_photorec_cliFunction · 0.85
add_partition_sun_cliFunction · 0.85

Calls

no outgoing calls

Tested by 1

mainFunction · 0.68