Debian Codegraph @

contrib/pcl3/eprn/pagecount.h

raw
1 /******************************************************************************
2 File: $Id: pagecount.h,v 1.3 2000/11/19 07:05:17 Martin Rel $
3 Contents: Header for pagecount file functions
4 Author: Martin Lottermoser, Greifswaldstrasse 28, 38124 Braunschweig,
5 Germany; e-mail: [email protected].
6
7 *******************************************************************************
8 * *
9 * Copyright (C) 2000 by Martin Lottermoser *
10 * All rights reserved *
11 * *
12 ******************************************************************************/
13
14 #ifndef _pagecount_h /* Inclusion protection */
15 #define _pagecount_h
16
17 #include "std.h"
18
19 #ifdef _MSC_VER
20 #define EPRN_NO_PAGECOUNTFILE
21 #else
22
23 /*****************************************************************************/
24
25 /* The following two functions are used to read and write a "page count file".
26 Such a file should contain a single line with a non-negative decimal
27 integer. pcf_getcount() reads the file and returns the value,
28 pcf_inccount() increases the number in the file by the specified amount.
29 A non-existent file is treated as a file containing the number zero.
30
31 The routines are safe against concurrent access.
32 */
33 extern int pcf_getcount(const gs_memory_t *mem, const char *filename, unsigned long *count);
34 extern int pcf_inccount(const gs_memory_t *mem, const char *filename, unsigned long by);
35
36 /*****************************************************************************/
37
38 #endif
39
40 #endif /* Inclusion protection */