📄 pagecount.h
字号:
/****************************************************************************** File: $Id: pagecount.h,v 1.3 2000/11/19 07:05:17 Martin Rel $ Contents: Header for pagecount file functions Author: Martin Lottermoser, Greifswaldstrasse 28, 38124 Braunschweig, Germany; e-mail: Martin.Lottermoser@t-online.de.******************************************************************************** ** Copyright (C) 2000 by Martin Lottermoser ** All rights reserved ** *******************************************************************************/#ifndef _pagecount_h /* Inclusion protection */#define _pagecount_h/* Configuration management identification */#pragma ident "@(#)$Id: pagecount.h,v 1.3 2000/11/19 07:05:17 Martin Rel $"/*****************************************************************************//* The following two functions are used to read and write a "page count file". Such a file should contain a single line with a non-negative decimal integer. pcf_getcount() reads the file and returns the value, pcf_inccount() increases the number in the file by the specified amount. A non-existent file is treated as a file containing the number zero. The routines are safe against concurrent access.*/extern int pcf_getcount(const char *filename, unsigned long *count);extern int pcf_inccount(const char *filename, unsigned long by);/*****************************************************************************/#endif /* Inclusion protection */
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -