Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
home:Ulih:vintagedevel
vbcc
vbcc-noquestions.patch
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File vbcc-noquestions.patch of Package vbcc
--- vbcc/datatypes/dtgen.c +++ vbcc/datatypes/dtgen.c @@ -131,10 +131,13 @@ { char in[8]; do{ - printf("Type y or n [%s]: ",def); + printf("Type y or n [%s]: \n",def); +#if 0 fflush(stdout); fgets(in,127,stdin); - if(*in=='\n') strcpy(in,def); + if(*in=='\n') +#endif + strcpy(in,def); }while(*in!='y'&&*in!='n'); return *in=='y'; } @@ -142,11 +145,14 @@ char *asktype(char *def) { char *in=mymalloc(128); - printf("Enter that type[%s]: ",def); + printf("Enter that type[%s]: \n",def); +#if 0 fflush(stdout); fgets(in,127,stdin); if(in[strlen(in)-1]=='\n') in[strlen(in)-1]=0; - if(!*in) strcpy(in,def); + if(!*in) +#endif + strcpy(in,def); return in; }
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor