Am a newbie in OS programming and want to develop an API which uses library calls fopen ,fclose ,ferror,feof,fputc,fgetc provided in the Standard C library headers stdio.h.
I tried finding information on the web about how to Design these function but i only managed to get how to use the already defined ones .
If anyone knows where i can get the information or can help pls do so.
thanx in advance.
stdio.h help
- Pype.Clicker
- Member
- Posts: 5964
- Joined: Wed Oct 18, 2006 2:31 am
- Location: In a galaxy, far, far away
- Contact:
Re:stdio.h help
Could you be a bit more precise on what you wish to do ? Writing your own stdio.h-compliant library or using stdio.h in your kernel ? Or writing a system-call that immediately supports stdio-like operations with no additionnal layer ?
I guess it's rather the former one. If it's the case, i suggest you look at struct FILE* declaration and figure out what all those fields are about.
I guess it's rather the former one. If it's the case, i suggest you look at struct FILE* declaration and figure out what all those fields are about.