T
Trying_Harder
Generally we have function names briefly indicating their actions.
In similar lines I expected `fopen' mean "File Open", fgets "File
Get String" etc.
I was told recently this wasn't the case though with the above
mentioned functions. `fgets' meant "Function Get String" similar
to `fputc' ("Function Put Character") or `fgetc' ( " Function Get
Character " ) which are macros of functions `getc' and `putc'
respectively.
Can someone please confirm this?
Also, do a+, r+, w+ mean the same? i.e. by defenition they all
seem to update a file. Can someone please elaborate?
p.s : I have referred to comp.lan.c FAQ's and didn't get clear
answers.
Thanks...
In similar lines I expected `fopen' mean "File Open", fgets "File
Get String" etc.
I was told recently this wasn't the case though with the above
mentioned functions. `fgets' meant "Function Get String" similar
to `fputc' ("Function Put Character") or `fgetc' ( " Function Get
Character " ) which are macros of functions `getc' and `putc'
respectively.
Can someone please confirm this?
Also, do a+, r+, w+ mean the same? i.e. by defenition they all
seem to update a file. Can someone please elaborate?
p.s : I have referred to comp.lan.c FAQ's and didn't get clear
answers.
Thanks...