All of lore.kernel.org
 help / color / mirror / Atom feed
* A safe scanf function
@ 2006-02-26  8:17 Shriramana Sharma
  2006-02-26 15:34 ` Glynn Clements
  0 siblings, 1 reply; 5+ messages in thread
From: Shriramana Sharma @ 2006-02-26  8:17 UTC (permalink / raw)
  To: Linux C Programming List

If I am not wrong, a safe alternate for scanf could be (relatively) easily 
written which simply uses getline and sscanf -- thereby replacing the 
original scanf function.

Why has not anyone written such a function and included it into the GNU C 
library? Myself, I may write such a function for a specific case in my 
program, but to modify the original library function I lack the know-how.

I request one of the guru-s here to do this most helpful task.

Thank you.

-- 

Tux #395953 resides at http://samvit.org
playing with KDE 3.51 on SUSE Linux 10.0
$ date [] CCE +2006-02-26 W08-7 UTC+0530

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2006-02-28  4:29 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-02-26  8:17 A safe scanf function Shriramana Sharma
2006-02-26 15:34 ` Glynn Clements
2006-02-27 15:15   ` Shriramana Sharma
2006-02-27 15:46     ` Glynn Clements
2006-02-28  4:29       ` Shriramana Sharma

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.