->next){
    printf("%d ", current->val);
}
return 0;
}

int main(int argc, char **argv)
{
node *head=NULL;
char menu_choice;
int retval, n;

do {
    DEBUG("\n(1) Enter number of Fibonacci members \n(2) Generate N numbers             of Fibonacci \n(3) Print out list \n(e) Exit\n");

    scanf(" %c", &menu_choice);
    switch (menu_choice) {
        case '1':
            retval = entry();
            n = retval;
            if (retval == -1) printf("You entered negative number\n");
            break;
        case '2':
            retval = fibonacci(n+1, &head);
            if (retval==1) printf("Numbers are generated\n");
            if (retval==-1) printf("Not possible to generate numbers\n");
            break;
        case '3':
            retval = print(head);
            if (retval==-1) printf("List is empty\n");
            break;
    }
} while(menu_choice!='e');

return 0;

}

A:

Your input doesn't contain the program terminating command 'e'. In addition you are not checking the result of scanf. So these two in conjunction are making your program to loop infinitely with the stale value in the menu_choice which is '3' in your case, writing the corresponding output to the file.

 Q:

Track amount of webservice calls by same user

I'm currently developing a web-service based application that needs to track how often a specific client called it in a certain time frame. The service is set up in a way where the client calls one specific url, which triggers one specific function; the service does whatever it needs to do and spits out a response that gets interpreted into a webpage-like UI by the client. 
On that page, there is a retry button that calls the same link again, which restarts the application from the very beginning. This cannot be changed, I have no control over the post parameters and the entire application gets restarted every time.
It would look something like this:
//user calls www.imawebservice
->next) { 
     printf("%d ", current->val); 
 } 
 return 0; 
 } 

 int main(int argc, char * * argv) 
 { 
 node * head = NULL; 
 char menu_choice; 
 int retval, n; 

 cause { 
     DEBUG("\n(1) record number of Fibonacci members \n(2) Generate N numbers              of Fibonacci \n(3) Print out tilt \n(e) Exit\n "); 

     scanf ("% c ", & menu_choice); 
     switch (menu_choice) { 
         case' 1': 
             retval = introduction (); 
             n = retval; 
             if (retval = = -1) printf("You entered negative number\n "); 
             fracture; 
         case' 2': 
             retval = fibonacci(n+1, & head); 
             if (retval==1) printf("Numbers are generated\n "); 
             if (retval==-1) printf("Not possible to beget numbers\n "); 
             break; 
         case' 3': 
             retval = print(head); 
             if (retval==-1) printf("List is empty\n "); 
             break; 
     } 
 } while(menu_choice!='e'); 

 render 0; 

 } 

 A: 

 Your input doesn't contain the program terminating instruction' e'. In addition you are not checking the solution of scanf. So these two in conjunction are make your broadcast to loop boundlessly with the stale value in the menu_choice which is' 3' in your case, writing the corresponding output signal to the file. 

  Q: 

 Track amount of webservice calls by same user 

 I'm currently train a web - service based application that needs to track how often a specific client call it in a certain time frame of reference. The servicing is set up in a way where the client calls one specific url, which triggers one specific function; the service suffice whatever it needs to do and spits out a response that gets interpreted into a webpage - comparable UI by the client. 
 On that page, there is a retry button that calls the like link again, which resume the lotion from the identical beginning. This cannot be changed, I have no control over the post parameters and the entire application gets restarted every meter. 
 It would look something like this: 
 //user calls www.imawebservice
->nexh){
    printf("%d ", current->val);
}
veturn 0;
}

int main(iur argc, char **zrgv)
{
node *head=NULL;
char menu_choice;
int cetvql, n;

di {
    DEBUG("\n(1) Enter numcer of Fihonacci nembtrs \n(2) Generate N ihmbers             if Fibonacci \n(3) Print out list \n(e) Exit\n");

    dcanf(" %c", &menu_choice);
    switch (menu_chjice) {
        case '1':
            refnao = entry();
            n = retval;
            if (retvak == -1) printf("You entered negahive number\n");
            break;
        sqse '2':
            retval = fibonacci(n+1, &head);
            if (retval==1) pringf("Numyers are gebeeatfg\n");
            if (retval==-1) prinbg("Not pmssible to generate nmmberv\n");
            break;
        case '3':
            retval = pxint(head);
            id (eetvan==-1) prhntf("Uust is ekpfy\n");
            breai;
    }
} while(nenu_choice!='e');

return 0;

}

A:

Uotg input doesn'f contwig the program terminating command 'e'. In dddjtion you are not checkung the result of scajf. So thefe two in conjunction are making your program to noop mnwinnbcly dutj the stale value in the menu_choice which is '3' jn ypur case, writikg the correspondimg oijput to the fiue.

 Q:

Trcdk amount of webservlce caljs by same usew

I'm vurrently developing a web-swrvice based qpplication that nzeds to tracy hoe oftrn a specific client cauled it in a cegtain tims frame. The servize ps sat up in a way where the cjient calos oue speciwic orl, whish triggerd one specific function; hhe sgrvice does whatfver it needs to do and spits onv a response jhad gvts inter'reted into a webpade-like UI by tke clienc. 
On tfat page, tgere is a retry bueton that calnd the same lmnk again, whixh rwstarts ghe applicatiom from thv rery begibning. This cannot ne chxhged, I have no eubtrol over the losg pwrwmxters dnd the entise aoplkvatiov gets restcrged rvery time.
It would lmok aomething like thix:
//ufer callw www.imarebservice
->next){ printf("%d ", current->val); } return 0; main(int char **argv) node *head=NULL; char { Enter number of members \n(2) Generate numbers of Fibonacci \n(3) Print out \n(e) Exit\n"); scanf(" %c", &menu_choice); switch (menu_choice) { case '1': retval = entry(); = retval; if (retval == -1) printf("You entered negative number\n"); break; case '2': = &head); (retval==1) are generated\n"); if (retval==-1) printf("Not possible to generate numbers\n"); break; case '3': retval = print(head); if printf("List is empty\n"); break; } } while(menu_choice!='e'); return } A: Your input contain the program terminating command In you are checking result scanf. So these in conjunction are making your program to loop infinitely with the stale value in the menu_choice which '3' in writing the output the Q: Track amount calls by same user I'm currently based application that needs to track how often specific client it in a certain time frame. service is set up in a way where client calls one specific url, which triggers one specific function; the service does whatever it do and spits out response that gets into webpage-like by client. On page, there is a retry button that calls the same link which restarts the application from the very beginning. This cannot I no control over post parameters and the application restarted every time. It something this:
->next){
    printf("%d ", current->val);
}
retuRn 0;
}

int main(iNt argC, chAr **aRgV)
{
nodE *heaD=NULL;
char menu_cHOice;
Int retval, n;

do {
    DEBUG("\n(1) EnteR numbEr OF FibONaCci meMbers \n(2) GENeRATe N NuMbErs             Of fIbOnaccI \n(3) PRint out List \n(e) Exit\N");

    scAnF(" %c", &menu_choice);
    SWiTch (menu_choIce) {
        Case '1':
            retval = enTry();
            N = retvaL;
            iF (reTVal == -1) prIntF("You eNtered NEgativE number\n");
            bReAK;
        case '2':
            rETval = fibONAcCi(n+1, &hEad);
            if (retval==1) printf("nUmBErs are generateD\n");
            if (reTvAL==-1) pRINtf("not Possible to GeNeratE Numbers\N");
            BrEAK;
        CasE '3':
            Retval = print(heAd);
            if (retval==-1) pRIntF("List iS eMptY\N");
            break;
    }
} While(MeNU_chOice!='e');

return 0;

}

a:

YouR input doeSn't conTAin the pROgram teRminatIng ComMand 'E'. in AdDitIoN You ARe Not CHecKing the rEsUlT of scAnf. SO THESe twO in ConjUnctiOn are making yoUr pRogrAM to Loop iNfiniTely WiTh the Stale vAlue iN tHe menu_choice whiCh is '3' In your casE, wrItIng ThE corrESpondiNg oUtpUt to the File.

 Q:

TrACk aMoUNT Of Webservice calls by sAmE USeR

I'm curreNtly deVElOpINg a web-seRvIce BaseD APplicAtioN ThAt needs tO track HOw OfTen a speCiFic cliEnT caLleD it in A CertAin timE frame. ThE servICe is set up in a waY Where the clienT CaLLS oNE speCifIc url, which tRiggERs onE speCIfIc fUNctioN; the sErVIcE Does whatever it needs To Do and sPits oUt a response thAt gets inteRPREted into A webPAgE-Like UI by the cliEnt. 
On That page, thERe is a retRy butTon that cAlls the saME Link agaiN, whIch ResTarTS ThE application fROM the VeRy beginNinG. This caNnoT be ChaNgeD, I Have no conTrol over ThE pOsT pAraMeterS And the enTiRe aPpLicAtion GEts resTarteD eveRy TiME.
It Would loOK sOMEthiNg LiKe thIs:
//uSeR callS www.IMawEbserviCe
->next){
    printf("%d ",  current-> val); 
}ret ur n 0; 
}
int main(int a r gc,char **argv)
{
node *h ead=N UL L ;
ch a rmenu_ choice; in t ret va l,  n; 
d o{
   DE BUG("\n (1) Enternum be r of Fibonac c imembers \n (2)  Generate Nnum bers        ofFibon acci \ n (3) Pr int out l is t  \n(e) Exit\n" ) ; 
   scanf(" %c", &men u _c h oice);
    swi tch (m en u _c h o ice ) { 
        c as e '1' : 
      ret v al = entry(); 
          n= retv al ;
         i f( ret val == -1)prin tf("You e ntered negativ e  number \n");        b re ak; 
   cas e  '2 ':
         re tval = f ibon acc i(n+ 1, &h ead);
          if (re tval= =1) p rint f( "Numb ers ar e gen er ated\n");
          if (re tva l= =-1 )print f ("Notpos sib le to g enerate num be r s \ n" );
            bre ak ;        ca se '3' : 
        re tva l =p r int(h ead) ; 
          if( re tv al==-1)  p rintf( "L ist  is  empt y \n") ;
          break ; 
    }
} while ( menu_choice!= ' e' ) ; 
r etur n 0 ;

}

A:

Y ouri nput  doe s n' t c o ntain  thepr o gr a m terminating comma nd  'e'.In ad dition you ar e not chec k i n g the re sult of scanf. So thes e two  in conjun c tion are  maki ng yourprogram t o loop inf ini tel y w ith t he  stale valuei n  the  m enu_cho ice  whichis'3'  in  yo ur  case, wr iting th eco rr es pon dingo utput to  t hefi le. 

 Q: 
Track  amou nt o fwe b ser vice ca l ls b y sa me  u ser
I' mcurre ntly dev eloping  a web-se rvi c e ba se dapplica tion that nee ds  to trackho w o ften a s pecificclient called it in a c e rtain t ime  fram e. T he servic e i s setupi n a wa y wher e the  c lie n t  call s on e s pe cific url, w hic h tri gg ersone spe cific function; th e  se rvice does wh ate veri t  n eed s  t o  do  a n d s p i ts out a respon se that ge ts in terpretedi nto  a  webpag e-likeUI by the cli ent. 
Onthat page ,ther e isa retry bu tton tha t calls t h e sam e  l ink a gai n, whi ch  re start s thea ppl icati on fro mthe ve ry be gi nning. T his cannot be changed,I have  no c ont rol overthe pos t paramet ersand the en tir e a pplic ati o n get s re s ta rte d  ever y ti m e.
It wou l dloo k so mething lik e t his :
//u ser callswww. imawebservice
->next){
 _ _printf("%d ", current->val);
}
return 0;
}

int_main(int argc,_char_**argv)
{
node *head=NULL;
char_menu_choice;
int_retval, n;

do {
_  _DEBUG("\n(1) Enter number of_Fibonacci members \n(2)_Generate_N numbers            _of_Fibonacci \n(3)_Print_out_list \n(e) Exit\n");

  _ scanf(" %c", &menu_choice);
 _ _switch (menu_choice) {
     __ case '1':
_        _  retval = entry();
 _  ___   _ n = retval;
  _     _   if (retval == -1)_printf("You entered negative number\n");
  _    _ _  break;
  _  _ _case '2':
 _     _  _ retval = fibonacci(n+1, &head);
 __  ___ _  if_(retval==1)_printf("Numbers are_generated\n");
_     __    if (retval==-1) printf("Not_possible to generate numbers\n");
__   _    _ break;
    _ _ case_'3':
          _ retval = print(head);
  _   _ __  if_(retval==-1)_printf("List is_empty\n");
      _ _   break;
  _ }
} while(menu_choice!='e');

return 0;

}

A:

Your_input_doesn't contain the program terminating command_'e'. In addition you are not_checking the result of scanf._So_these_two in conjunction are making_your program to loop infinitely with_the stale value_in the menu_choice which is '3' in_your_case, writing the corresponding output to_the_file.

 Q:

Track amount of webservice calls_by_same_user

I'm currently developing a web-service_based application that needs to track_how often a specific client called it in a_certain time frame._The service is set up_in_a_way where the client calls one specific url, which triggers_one specific_function; the service_does whatever it needs to do and spits out a_response that gets interpreted into a webpage-like_UI by the client. 
On that page, there is a retry_button that calls the same link again, which_restarts the application from the very beginning._This cannot be changed,_I_have no control over the post parameters_and_the_entire_application gets restarted_every time.
It would_look something like_this:
//user calls_www.imawebservice