Enlightenment CVS committal Author : codewarrior Project : e17 Module : libs/ecore
Dir : e17/libs/ecore/src/lib/ecore_file Modified Files: Ecore_File.h ecore_file.c Log Message: - ecore_file_size =================================================================== RCS file: /cvsroot/enlightenment/e17/libs/ecore/src/lib/ecore_file/Ecore_File.h,v retrieving revision 1.20 retrieving revision 1.21 diff -u -3 -r1.20 -r1.21 --- Ecore_File.h 7 Dec 2005 07:18:52 -0000 1.20 +++ Ecore_File.h 9 Dec 2005 00:02:21 -0000 1.21 @@ -51,6 +51,7 @@ EAPI int ecore_file_init (void); EAPI int ecore_file_shutdown (void); EAPI time_t ecore_file_mod_time (const char *file); + EAPI int ecore_file_size (const char *file); EAPI int ecore_file_exists (const char *file); EAPI int ecore_file_is_dir (const char *file); EAPI int ecore_file_mkdir (const char *dir); =================================================================== RCS file: /cvsroot/enlightenment/e17/libs/ecore/src/lib/ecore_file/ecore_file.c,v retrieving revision 1.41 retrieving revision 1.42 diff -u -3 -r1.41 -r1.42 --- ecore_file.c 1 Dec 2005 06:23:58 -0000 1.41 +++ ecore_file.c 9 Dec 2005 00:02:21 -0000 1.42 @@ -52,6 +52,15 @@ } int +ecore_file_size(const char *file) +{ + struct stat st; + + if (stat(file, &st) < 0) return 0; + return st.st_size; +} + +int ecore_file_exists(const char *file) { struct stat st; ------------------------------------------------------- This SF.net email is sponsored by: Splunk Inc. Do you grep through log files for problems? Stop! Download the new AJAX search engine that makes searching your log files as easy as surfing the web. DOWNLOAD SPLUNK! http://ads.osdn.com/?ad_id=7637&alloc_id=16865&op=click _______________________________________________ enlightenment-cvs mailing list enlightenment-cvs@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/enlightenment-cvs