// ---------------------------------------------------------------------------
// - t_csio.cpp -
// - standard platform library - simple io tester module -
// ---------------------------------------------------------------------------
// - This program is free software; you can redistribute it and/or modify -
// - it provided that this copyright notice is kept intact. -
// - -
// - This program is distributed in the hope that it will be useful, but -
// - without any warranty; without even the implied warranty of -
// - merchantability or fitness for a particular purpose. In no event shall -
// - the copyright holder be liable for any direct, indirect, incidental or -
// - special damages arising in any way out of the use of this software. -
// ---------------------------------------------------------------------------
// - copyright (c) 1999-2007 amaury darsch -
// ---------------------------------------------------------------------------
#include "csio.hpp"
#include "cstr.hpp"
int main (int, char**) {
using namespace afnix;
// check for standard io stream
if (c_stdin () < 0) return 1;
if (c_stdout () < 0) return 1;
if (c_stderr () < 0) return 1;
// check if our file exists
if (c_isfile ("t_csio.cpp") == false) return 1;
// try to open the file
int sid = c_openr ("t_csio.cpp");
if (sid < 0) return 1;
c_close (sid);
// ok this is enough
return 0;
}
syntax highlighted by Code2HTML, v. 0.9.1