alternative fgets() function.

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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

--^--		
 ~|~
  -



[Index of Archives]     [Linux C Programming]     [Linux Kernel]     [eCos]     [Fedora Development]     [Fedora Announce]     [Autoconf]     [The DWARVES Debugging Tools]     [Yosemite Campsites]     [Yosemite News]     [Linux GCC]

  Powered by Linux