X-Git-Url: http://nsz.repo.hu/git/?a=blobdiff_plain;f=src%2Fstdio%2Ffpurge.c;fp=src%2Fstdio%2Ffpurge.c;h=a9e98e7b84166d13aff2b6e5ba21a284b60e8970;hb=7640497f5f28ddb4aa13528676a99b603320f47e;hp=0000000000000000000000000000000000000000;hpb=fb62ae74d0c87ff506e970bf18579cc96b16e046;p=musl diff --git a/src/stdio/fpurge.c b/src/stdio/fpurge.c new file mode 100644 index 00000000..a9e98e7b --- /dev/null +++ b/src/stdio/fpurge.c @@ -0,0 +1,11 @@ +#define _GNU_SOURCE +#include "stdio_impl.h" + +int __fpurge(FILE *f) +{ + f->wpos = f->wbase = f->wend = 0; + f->rpos = f->rend = 0; + return 0; +} + +weak_alias(__fpurge, fpurge);