Changes between Initial Version and Version 1 of Docs/Prog/Manual/ApplicationLibraries/lib825ev/File/IsMounted


Ignore:
Timestamp:
08/20/10 15:25:13 (14 years ago)
Author:
Don Wilson
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • Docs/Prog/Manual/ApplicationLibraries/lib825ev/File/IsMounted

    v1 v1  
     1= IsMounted =
     2Check whether the specified file device is mounted
     3
     4{{{
     5int IsMounted(const string& strMount);
     6
     7int IsMounted(const char* pszMount);
     8}}}
     9
     10== Parameters ==
     11
     12 * strMount - string variable containing name to check
     13 * pszMount - character array containing name to check
     14
     15== Return Value ==
     16
     17 * Returns 1 if device is mounted, 0 if it is not mounted
     18
     19== Remarks ==
     20
     21The function operates by reading /proc/mounts and checking for string match
     22
     23== Examples ==
     24
     25{{{
     26string strMnt = "/mnt/fl1";
     27if(IsMounted(strMnt) == 0)
     28{
     29  DisplayText(0, 0, "Flash is not mounted");
     30}
     31}}}
     32
     33{{{
     34if(IsMounted("/mnt/fl1") == 0)
     35{
     36  DisplayText(0, 0, "Flash is not mounted");
     37}
     38}}}
     39
     40== See Also ==
     41
     42