File:  [DVB] / dietlibc / lib / rewinddir.c
Revision 1.3: download - view: text, annotated - select for diffs
Sat Feb 3 20:41:12 2001 UTC (23 years, 4 months ago) by fefe
Branches: MAIN
CVS tags: finnland_test_200301, branch_rc14_fieldtest_finnland, branch_rc13_fieldtest_finnland, branch_rc12_fieldtest_finnland, branch_rc10_fieldtest_finnland, RELEASE_finnland_200301_1, RC12_FIELDTEST_FINNLAND, RC10_FIELDTEST_FINNLAND, HEAD
vsnprintf(0,...) estimated the length of strings with a padding width incorrectly.

#include "dietdirent.h"
#include <unistd.h>
#include <dirent.h>

void rewinddir(DIR *d) {
  if (lseek(d->fd,0,SEEK_SET) != (off_t)-1)
    d->num=d->cur=0;
}

LinuxTV legacy CVS <linuxtv.org/cvs>