Exemplo n.º 1
0
int check_ucn(char ucn[], char country[])
{
    if(is_string_equals(country,"bg"))
    {
        return check_bg_ucn(ucn);
    }

    return 0;
}
Exemplo n.º 2
0
static halt_err_t kernel_main_mod_get(uint32_t mods_count, uint32_t mods_addr, multiboot_module_t **result) {
  multiboot_module_t *mod;
  char *cmdline;

  if (mods_count == 0) {
    return HALT_ERROR;
  }

  mod = (multiboot_module_t *)(intptr_t)mods_addr;

  while (mods_count-- > 0) {
    cmdline = (char *)mod->cmdline;
    if (is_string_equals(cmdline, halt_multiboot_module_name, halt_multiboot_module_name_length)) {
      *result = (multiboot_module_t *)(intptr_t)mods_addr;
      return HALT_SUCCESS;
    }
    ++mod;
  }

  return HALT_ERROR;
}