On Tue, 2006-11-07 at 07:29 -0800,
wrote:
> Andrew Poelstra wrote:
> > On Mon, 2006-11-06 at 22:08 -0800, jobo wrote:
> > > Hello,
> > >
> > > If I'm given a string that always starts with the word "free" followed
> > > by an integer ("free xx"). How do I parse through the characters and
> > > get to the integer value? Thanks.
> > >
> >
> > scanf("free %d", &n);
>
> Actually for a string, he needs sscanf() surely...
>
I misread being "given" a string as input from stdin. My bad.
--
Andrew Poelstra <http://www.wpsoftware.net>
For email, use 'apoelstra' at the above site.
"You're only smart on the outside." -anon.