![]() |
Hello and Welcome from to the UNIX and Linux Forums! Thank You for Visiting and Joining Our Global Community.
|
|
google unix.com
|
|||||||
| Forums | Register | Forum Rules | Links | Albums | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
| High Level Programming Post questions about C, C++, Java, SQL, and other programming languages here. |
More UNIX and Linux Forum Topics You Might Find Helpful
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| simple scanf issue ? | the_learner | High Level Programming | 4 | 04-11-2007 04:51 AM |
| problem with scanf | mridula | High Level Programming | 4 | 12-23-2006 01:43 PM |
| scanf with strings... please help | inkfish | High Level Programming | 1 | 05-25-2005 06:17 PM |
| raid 0+1 +oracle getting slow data reads. | Optimus_P | UNIX for Advanced & Expert Users | 19 | 07-11-2003 07:50 PM |
| Scanf problem under LINUX... | robotronic | High Level Programming | 4 | 04-19-2002 09:26 AM |
![]() |
|
|
LinkBack | Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
|
|
||||
|
scanf doesn´t reads spaces ???
hi all
i have a program in C (Unix Solaris 5.7) and i want to read a string from keyboard, but the "scanf" doesn´t reads spaces. example: .... char name[50]; .... printf("Enter your name: "); scanf("%s",&name); printf ("Your name is: %s", name); and if i write Kevin Costner the program only reads Kevin (that is what shows in the screen) what can i do? please help me... thanks.... jona |
![]() |
| Bookmarks |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|