コード例 #1
0
ファイル: eina_prefix.c プロジェクト: FlorentRevest/EFL
static Eina_Bool
_path_absolute_check(const char *path)
{
#ifdef _WIN32
   return evil_path_is_absolute(path);
#else
   return (path[0] == DSEP_C);
#endif
}
コード例 #2
0
ファイル: evas_path.c プロジェクト: tasn/efl
int
evas_file_path_is_full_path(const char *path)
{
   if (!path) return 0;
#ifdef _WIN32
   if (evil_path_is_absolute(path)) return 1;
#else
   if (path[0] == '/') return 1;
#endif
   return 0;
}
コード例 #3
0
ファイル: evil_test_util.c プロジェクト: RomainNaour/efl
static int test_path_absolute_test_6(void)
{
   char *path;
   int   result;

   path = "C:\\foo";
   result = evil_path_is_absolute(path);
   if (result == 0)
     return 0;

   return 1;
}
コード例 #4
0
ファイル: evil_test_util.c プロジェクト: RomainNaour/efl
static int test_path_absolute_test_4(void)
{
   char *path;
   int   result;

   path = "1/\\";
   result = evil_path_is_absolute(path);
   if (result != 0)
     return 0;

   return 1;
}