Richard Ivanowich wrote:

> Very Simple question.  How do i get strings with spaces in them from the
> keyboard???

The same as for any other string; use fgets, fscanf, etc.

> Also What is the correct way to use gets?

Using gets() is a bad idea, as it doesn't know how big the buffer is.
This introduces the potential for buffer overruns. The GNU tools
generate the warning:

        the `gets' function is dangerous and should not be used.

if you try to use it. Use fgets() instead.

-- 
Glynn Clements <[EMAIL PROTECTED]>

Reply via email to