File: library.h

package info (click to toggle)
WMRack 1.0b3-1
  • links: PTS
  • area: main
  • in suites: slink
  • size: 424 kB
  • ctags: 260
  • sloc: ansic: 3,297; sh: 156; makefile: 109
file content (33 lines) | stat: -rw-r--r-- 656 bytes parent folder | download | duplicates (2)
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
/*
 * $Id: library.h,v 1.3 1997/10/18 14:39:20 ograf Exp $
 *
 * part of wmrack
 *
 * handles the library path searchs
 *
 * Copyright (c) 1997 by Oliver Graf <ograf@fga.de>
 */
#ifndef _LIBRARY_H
#define _LIBRARY_H

#define LIB_CLOSED 0
#define LIB_READ   1
#define LIB_WRITE  2
#define LIB_APPEND 3

typedef struct
{
  FILE *f;
  char *name;
  int mode;
} LIBRARY;

char *lib_findfile(char *name, int here);
LIBRARY *lib_open(char *name, int mode);
int lib_close(LIBRARY *lib);
int lib_free(LIBRARY *lib);
int lib_reopen(LIBRARY *lib, int mode);
char *lib_gets(LIBRARY *lib, char *line, int len);
int lib_printf(LIBRARY *lib, char *format, ...);

#endif