Sha256: e771b1ed3d2ccbbc273991c7fbb0e8aef2e75ff3231bae208fe8c2f7d4ee4581

Contents?: true

Size: 1.21 KB

Versions: 27

Compression:

Stored size: 1.21 KB

Contents

#ifndef BZS_ENV_FILEOPEN_H
#define BZS_ENV_FILEOPEN_H
/*=================================================================
   Copyright (C) 2012 2013 BizStation Corp All rights reserved.

   This program is free software; you can redistribute it and/or
   modify it under the terms of the GNU General Public License
   as published by the Free Software Foundation; either version 2
   of the License, or (at your option) any later version.

   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.  See the
   GNU General Public License for more details.

   You should have received a copy of the GNU General Public License
   along with this program; if not, write to the Free Software
   Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
   02111-1307, USA.
=================================================================*/

#include <stdio.h>

inline FILE* fileOpen(const char* filename, const char* flag)
{
    FILE* fp;
#ifdef LINUX
    fp = fopen(filename, flag);
#else
    fopen_s(&fp, filename, flag);
#endif
    return fp;
}

#endif // BZS_ENV_FILEOPEN_H

Version data entries

27 entries across 27 versions & 1 rubygems

Version Path
transactd-2.4.2 source/bzs/env/fileopen.h
transactd-2.4.0 source/bzs/env/fileopen.h
transactd-2.3.0 source/bzs/env/fileopen.h
transactd-2.2.0 source/bzs/env/fileopen.h
transactd-2.1.0 source/bzs/env/fileopen.h
transactd-2.0.1 source/bzs/env/fileopen.h
transactd-2.0.0 source/bzs/env/fileopen.h