9base

revived minimalist port of Plan 9 userland to Unix
git clone git://git.suckless.org/9base
Log | Files | Refs | README | LICENSE

nulldir.c (140B)


      1 #include <u.h>
      2 #include <libc.h>
      3 
      4 void
      5 nulldir(Dir *d)
      6 {
      7 	memset(d, ~0, sizeof(Dir));
      8 	d->name = d->uid = d->gid = d->muid = d->ext = "";
      9 }