int qCountUpdate ( const char *  filepath,
int  number 
)

Increases(or decrease) the counter value as much as specified number with advisory file locking.

Parameters:
filepath file path
number how much increase or decrease
Returns:
updated counter value. in case of failure, returns 0.
Note:
   int count;
   count = qCountUpdate("number.dat", -3);

Definition at line 115 of file qCount.c.


Generated on Mon Mar 26 07:00:51 2018 for JSOC_Documentation by  doxygen 1.5.7.1