File: Cns_rewinddir.c

package info (click to toggle)
lfc-postgres 1.7.4.7-1
  • links: PTS, VCS
  • area: main
  • in suites: squeeze
  • size: 13,676 kB
  • ctags: 10,779
  • sloc: ansic: 146,136; sh: 13,176; perl: 11,142; python: 5,529; cpp: 5,113; sql: 1,790; makefile: 861; fortran: 113
file content (25 lines) | stat: -rw-r--r-- 527 bytes parent folder | download | duplicates (8)
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
/*
 * Copyright (C) 1999-2001 by CERN/IT/PDP/DM
 * All rights reserved
 */

#ifndef lint
static char sccsid[] = "@(#)$RCSfile: Cns_rewinddir.c,v $ $Revision: 1.1.1.1 $ $Date: 2001/05/13 05:48:43 $ CERN IT-PDP/DM Jean-Philippe Baud";
#endif /* not lint */

/*	Cns_rewinddir - reset the position to the beginning of the directory */

#include <sys/types.h>
#include "Cns_api.h"

void DLL_DECL
Cns_rewinddir(Cns_DIR *dirp)
{
	if (! dirp)
		return;
	dirp->bod = 1;
	dirp->eod = 0;
	dirp->dd_loc = 0;
	dirp->dd_size = 0;
	return;
}