Thread
:
Are there different ways to store long strings(including spacing)?
View Single Post
Deadly Ghos7
Contributor
7Feb2010,21:07
Don't use gets() function, its vulnerable.
Code: c
fgets
(
string
,
sizeof
(
string
)
,stdin
)
;
And for scanf(),
Code: c
scanf
(
"%[^
\n
]"
,
string
)
;
Hope that helps you.