Thread
:
Making a Note Adder/ Editor/ Deleter/ Viewer thingy
View Single Post
Apr 26th, 2005, 12:41 PM
#
6
Ooble
I eat cake for breakfast.
Join Date: Jul 2004
Location: In my box.
Posts: 4,434
Rep Power:
9
Don't use
gets
- instead, use
scanf
or
fgets
, which both include ways to disregard more than x characters:
(
Toggle Plain Text
)
scanf("%999s", ¬e); OR fgets(note, 999, stdin);
scanf("%999s", ¬e); OR fgets(note, 999, stdin);
__________________
Me
::
You
::
Them
Ooble
View Public Profile
Visit Ooble's homepage!
Find More Posts by Ooble