shithub: riscv

ref: 699d2e0ed94bd545bb3dd8c64a3922f56f273f0e
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);
}