ref: 9c60a4ddd172777ab5a8a167e62d71bb89d8db57
dir: /sys/src/ape/lib/ap/stdio/fopen.c/
/*
* pANS stdio -- fopen
*/
#include "iolib.h"
FILE *fopen(const char *name, const char *mode){
FILE *f;
if((f = _IO_newfile()) == NULL)
return NULL;
return freopen(name, mode, f);
}