Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Search results for query: *

  • Users: lfang
  • Order by date
  1. lfang

    How do I convert Integer to String

    A revised version based on shail's (tested). int length, i; char buf[15]; int num = n; length=(int)log10(n)+1; memset(buf,'0',15); buf[length] = 0; for (i=length-1; i >= 0;i--) { buf[i] += num%10; num /= 10; }

Part and Inventory Search

Back
Top