This is the mail archive of the
gcc-help@gcc.gnu.org
mailing list for the GCC project.
alternative fgets() function.
- From: "Bansidhar Arvind Deshpande - CTD, Chennai." <bansidhara at ctd dot hcltech dot com>
- To: gcc-help at gcc dot gnu dot org
- Date: Mon, 15 Dec 2003 23:58:30 +0530
- Subject: alternative fgets() function.
Hi gcc,
I am interested in alternative fgets() with slightly different
functionality.
fgets() normally reads from file and populates the character buffer with
string until '\n' or EOF is found. I want to add one more character to this
list that is '\\' . Hence, my_fgets() should return the string until either
of '\\' or '\n' or EOF is found.
Is there any library function exists to achieve above functionality ?
Otherwise I have to write customised function anyways if it doesn't.
Thanks in advance,
---Bansidhar
--^--
~|~
-