This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

0-9999 counter with c

can u make a counter for 0-9999 with c ?

Parents
  • /*
    **======================================================================
    **      My_Counter
    **======================================================================
    **
    **  Counts to MAX_COUNT and returns the MAX_COUNT value.
    **
    **----------------------------------------------------------------------
    **
    **  Parameters Passed:      <void>
    **  Parameters Returned:    u16 -- the counted value
    **  Notes:
    **
    **          'ramble( )' expands to 9999 words of boredom.
    **
    **----------------------------------------------------------------------
    */
    u16 My_Counter( void )
    {
        ramble( 9999 ); // lots of comments
    }
    

    --Cpt. Vince Foster
    2nd Cannon Place
    Fort Marcy Park, VA

Reply
  • /*
    **======================================================================
    **      My_Counter
    **======================================================================
    **
    **  Counts to MAX_COUNT and returns the MAX_COUNT value.
    **
    **----------------------------------------------------------------------
    **
    **  Parameters Passed:      <void>
    **  Parameters Returned:    u16 -- the counted value
    **  Notes:
    **
    **          'ramble( )' expands to 9999 words of boredom.
    **
    **----------------------------------------------------------------------
    */
    u16 My_Counter( void )
    {
        ramble( 9999 ); // lots of comments
    }
    

    --Cpt. Vince Foster
    2nd Cannon Place
    Fort Marcy Park, VA

Children