Sha256: 5bcb4f52bfce7ab0052a44ccda2375bf2b7a527335d472939c460479dcf64570

Contents?: true

Size: 1.21 KB

Versions: 3

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

3 entries across 3 versions & 1 rubygems

Version Path
transactd-1.2.0 source/bzs/env/fileopen.h
transactd-1.1.2 source/bzs/env/fileopen.h
transactd-1.0.1 source/bzs/env/fileopen.h