help plz - fopen()

Hello,

I have a problem here, I want to write a function called"myfopen()" instead of "fopen()"
for writing this function I must not use the <stdio.h> library,

Can you help me?

thanks a lot

This sounds like homework... We have a special forum for that.

#include <sys/types.h>
#include <sys/stat.h>
#include <fcntl.h>

That will let you call open(). Open returns a number, and is how fopen() works to open a file.

Thanks a lot