A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from http://technical.swissmicros.com/dmcp/doc/DMCP-ifc-html/group__disk__other.html below:

DMCP interface: Other file functions

Filesystem functions. More...

int  check_create_dir (const char *dir)   Creates directory if doesn't exist.
  int  file_exists (const char *fn)   Check whether file exists.
  int  file_size (const char *fn)   Returns file size.
  void  make_date_filename (char *fn, const char *dir, const char *ext)   Creates filename using current date/time.
 

Filesystem functions.

◆ check_create_dir() int check_create_dir ( const char * dir )

Creates directory if doesn't exist.

Parameters
Returns
Returns 0 on success
◆ file_exists() int file_exists ( const char * fn )

Check whether file exists.

Parameters
Returns
(0/1) 1 = File exists
◆ file_size() int file_size ( const char * fn )

Returns file size.

Parameters
Returns
File size or -1 if file doesn't exist
◆ make_date_filename() void make_date_filename ( char * fn, const char * dir, const char * ext )

Creates filename using current date/time.

Parameters
[out] fn String buffer for created filename dir File directory ext File extension

Created string has following format:

/<dir>/YYYYMMDD-hhmmsscc<ext>

i.e. <ext> has to contain dot if required

Example usage

RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4