Back to index

lightning-sunbird  0.9+nobinonly
Defines | Functions
fileio.cpp File Reference
#include "rcfileio.h"
#include <prlog.h>
#include <prprf.h>

Go to the source code of this file.

Defines

#define DEFAULT_ITERATIONS   100

Functions

PRIntn main (PRIntn argc, char **argv)

Define Documentation

Definition at line 45 of file fileio.cpp.


Function Documentation

PRIntn main ( PRIntn  argc,
char **  argv 
)

Definition at line 47 of file fileio.cpp.

{
    PRStatus rv;
    RCFileIO fd;
    RCFileInfo info;
    rv = fd.Open("filio.dat", PR_CREATE_FILE, 0666);
    PR_ASSERT(PR_SUCCESS == rv);
    rv = fd.FileInfo(&info);
    PR_ASSERT(PR_SUCCESS == rv);
    rv = fd.Delete("filio.dat");
    PR_ASSERT(PR_SUCCESS == rv);
    fd.Close();
    PR_ASSERT(PR_SUCCESS == rv);

    return 0;
}  /* main */