Toggle navigation
SCIP Optimization Suite
SCIP
SoPlex
ZIMPL
UG
GCG
Documentation
SCIP 9.1.1
SCIP 8.1.0
SCIP 7.0.3
SCIP 6.0.2
SCIP 5.0.1
SCIP 4.0.1
SCIP 3.2.1
SCIP
Solving Constraint Integer Programs
Overview
Files
Plugin Types
Interfaces
Examples
How To
All
Data Structures
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Macros
Groups
Pages
scip-repo
src
scip
pub_fileio.h
Go to the documentation of this file.
1
/* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */
2
/* */
3
/* This file is part of the program and library */
4
/* SCIP --- Solving Constraint Integer Programs */
5
/* */
6
/* Copyright (C) 2002-2014 Konrad-Zuse-Zentrum */
7
/* fuer Informationstechnik Berlin */
8
/* */
9
/* SCIP is distributed under the terms of the ZIB Academic License. */
10
/* */
11
/* You should have received a copy of the ZIB Academic License */
12
/* along with SCIP; see the file COPYING. If not email to scip@zib.de. */
13
/* */
14
/* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */
15
16
/**@file pub_fileio.h
17
* @ingroup PUBLICMETHODS
18
* @brief wrapper functions to map file i/o to standard or zlib file i/o
19
* @author Tobias Achterberg
20
*/
21
22
/*---+----1----+----2----+----3----+----4----+----5----+----6----+----7----+----8----+----9----+----0----+----1----+----2*/
23
24
#ifndef __SCIP_PUB_FILEIO_H__
25
#define __SCIP_PUB_FILEIO_H__
26
27
#include <stddef.h>
28
#include "
scip/def.h
"
29
30
#ifdef __cplusplus
31
extern
"C"
{
32
#endif
33
34
typedef
struct
SCIP_File
SCIP_FILE
;
/**< file data structure */
35
36
EXTERN
SCIP_FILE
*
SCIPfopen
(
const
char
*path,
const
char
*mode);
37
EXTERN
SCIP_FILE
*
SCIPfdopen
(
int
fildes,
const
char
*mode);
38
EXTERN
size_t
SCIPfread
(
void
*ptr,
size_t
size,
size_t
nmemb,
SCIP_FILE
*stream);
39
EXTERN
size_t
SCIPfwrite
(
const
void
*ptr,
size_t
size,
size_t
nmemb,
SCIP_FILE
*stream);
40
EXTERN
int
SCIPfprintf
(
SCIP_FILE
*stream,
const
char
*format, ...);
41
EXTERN
int
SCIPfputc
(
int
c,
SCIP_FILE
*stream);
42
EXTERN
int
SCIPfputs
(
const
char
*s,
SCIP_FILE
*stream);
43
EXTERN
int
SCIPfgetc
(
SCIP_FILE
*stream);
44
EXTERN
char
*
SCIPfgets
(
char
*s,
int
size,
SCIP_FILE
*stream);
45
EXTERN
int
SCIPfflush
(
SCIP_FILE
*stream);
46
EXTERN
int
SCIPfseek
(
SCIP_FILE
*stream,
long
offset,
int
whence);
47
EXTERN
void
SCIPrewind
(
SCIP_FILE
*stream);
48
EXTERN
long
SCIPftell
(
SCIP_FILE
*stream);
49
EXTERN
int
SCIPfeof
(
SCIP_FILE
*stream);
50
EXTERN
int
SCIPfclose
(
SCIP_FILE
*fp);
51
52
#ifdef __cplusplus
53
}
54
#endif
55
56
#endif
57