Example #1
0
static uim_lisp
c_prepare_dir(uim_lisp dir_)
{
  if (!uim_check_dir(REFER_C_STR(dir_))) {
    return uim_scm_f();
  }
  return uim_scm_t();
}
Example #2
0
uim_bool
get_ud_path(char *path, int len)
{
  if (len <= 0)
    return UIM_FALSE;

  if (!uim_get_config_path(path, len, !uim_helper_is_setugid())) {
    path[0] = '\0';
    return UIM_FALSE;
  }

  if (strlcat(path, "/fep", len) >= (size_t)len) {
    path[0] = '\0';
    return UIM_FALSE;
  }

  if (!uim_check_dir(path)) {
    path[0] = '\0';
    return UIM_FALSE;
  }

  return UIM_TRUE;
}