shithub: riscv

ref: a4c6dc1d3d3a2ef3ec4d4ac49b16ec039c353cd7
dir: /sys/src/ape/lib/ap/stdio/fopen.c/

View raw version
/*
 * 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);
}