reading a line through scanf
- From: "gyan" <singhg4@xxxxxxx>
- Date: Thu, 30 Jun 2005 01:30:36 -0400
I want to read a line with white spaces though scanf.
So i used:
scanf("%['/n']",string);
above is working in one program, but in other..what may be the reason?
.
- Follow-Ups:
- Re: reading a line through scanf
- From: CBFalconer
- Re: reading a line through scanf
- From: Lawrence Kirby
- Re: reading a line through scanf
- From: pete
- Re: reading a line through scanf
- From: Suman
- Re: reading a line through scanf
- Prev by Date: Re: what's wrong with atof() and casting?
- Next by Date: Re: reading a line through scanf
- Previous by thread: Re: K&R3?
- Next by thread: Re: reading a line through scanf
- Index(es):
Relevant Pages
|