File: GB_file.h

package info (click to toggle)
suitesparse 1%3A7.11.0%2Bdfsg-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 258,172 kB
  • sloc: ansic: 1,153,566; cpp: 48,145; makefile: 4,997; fortran: 2,087; java: 1,826; sh: 1,113; ruby: 725; python: 676; asm: 371; sed: 166; awk: 44
file content (35 lines) | stat: -rw-r--r-- 842 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
//------------------------------------------------------------------------------
// GB_file.h: portable file I/O
//------------------------------------------------------------------------------

// SuiteSparse:GraphBLAS, Timothy A. Davis, (c) 2017-2025, All Rights Reserved.
// SPDX-License-Identifier: Apache-2.0

//------------------------------------------------------------------------------

#ifndef GB_FILE_H
#define GB_FILE_H

#if (defined (_WIN64) || defined (_WIN32))
#define GB_WINDOWS 1
#else
#define GB_WINDOWS 0
#endif

// to pipe stdout to /dev/null
#if GB_WINDOWS
#define GB_DEV_NULL " > nul"
#else
#define GB_DEV_NULL " > /dev/null"
#endif

bool GB_file_mkdir (char *path) ;

void *GB_file_dlopen (char *library_name) ;

void *GB_file_dlsym (void *dl_handle, char *symbol) ;

void GB_file_dlclose (void *dl_handle) ;

#endif