Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. C / C++ / MFC
  4. _itot and _iota

_itot and _iota

Scheduled Pinned Locked Moved C / C++ / MFC
question
9 Posts 5 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • B Offline
    B Offline
    baldha rakesh
    wrote on last edited by
    #1

    i am not able to understant about these function so anybody tell me about these funtion. i want to know what is the purpose of these function because i have to implement these function in own way. Thanks & Regards Banks

    G _ L D 4 Replies Last reply
    0
    • B baldha rakesh

      i am not able to understant about these function so anybody tell me about these funtion. i want to know what is the purpose of these function because i have to implement these function in own way. Thanks & Regards Banks

      G Offline
      G Offline
      Ganesh_T
      wrote on last edited by
      #2

      _itoa : function convert the digits of the given value argument to a null-terminated character string and stores the result (up to 33 characters for _itoa) in string. Cheers "Peace of mind through Technology"

      B 1 Reply Last reply
      0
      • B baldha rakesh

        i am not able to understant about these function so anybody tell me about these funtion. i want to know what is the purpose of these function because i have to implement these function in own way. Thanks & Regards Banks

        _ Offline
        _ Offline
        _AnsHUMAN_
        wrote on last edited by
        #3

        From the DOCS: _itot(int ,_TCHAR* ,int ) value - Number to be converted string - String result radix - Base of value; must be in the range 2 - 36 _itoa(int ,char *,int) value - Number to be converted string - String result radix - Base of value; must be in the range 2 - 36 Somethings seem HARD to do, until we know how to do them. ;-) _AnShUmAn_

        B 1 Reply Last reply
        0
        • B baldha rakesh

          i am not able to understant about these function so anybody tell me about these funtion. i want to know what is the purpose of these function because i have to implement these function in own way. Thanks & Regards Banks

          L Offline
          L Offline
          Laxman Auti
          wrote on last edited by
          #4

          Use the following Generic-Text Routine Mappings if TCHAR.H Routine _itot if _UNICODE & _MBCS Not Defined _itoa if _MBCS Defined _itoa if _UNICODE Defined _itow Knock out 't' from can't, You can if you think you can :cool:

          1 Reply Last reply
          0
          • G Ganesh_T

            _itoa : function convert the digits of the given value argument to a null-terminated character string and stores the result (up to 33 characters for _itoa) in string. Cheers "Peace of mind through Technology"

            B Offline
            B Offline
            baldha rakesh
            wrote on last edited by
            #5

            i have to implement this function in other plateform not on windows and there is no spelling mistaques this is _itot and _iota not itoa. Thanks & Regards Banks

            1 Reply Last reply
            0
            • _ _AnsHUMAN_

              From the DOCS: _itot(int ,_TCHAR* ,int ) value - Number to be converted string - String result radix - Base of value; must be in the range 2 - 36 _itoa(int ,char *,int) value - Number to be converted string - String result radix - Base of value; must be in the range 2 - 36 Somethings seem HARD to do, until we know how to do them. ;-) _AnShUmAn_

              B Offline
              B Offline
              baldha rakesh
              wrote on last edited by
              #6

              I have to implement these function on other plateform not simply use these function so i want source code for these function not only syntax. Thanks & Regards Banks

              _ 1 Reply Last reply
              0
              • B baldha rakesh

                I have to implement these function on other plateform not simply use these function so i want source code for these function not only syntax. Thanks & Regards Banks

                _ Offline
                _ Offline
                _AnsHUMAN_
                wrote on last edited by
                #7

                What is the platform? I am providing the code for the operation of _itoa(*,**,10); * denotes integer variable ** denotes char* char *convertinttochar(int num) { int ix=0; int jx=0; int kx=0; int xones=0; char xtemp[5]; char xans[5]; while (num!=0) { xones=num%10; xtemp[i]=(char)(xones+48); num=num/10; ix++; } for(jx=ix-1;jx>=0;jx--) { ans[kx]=temp[jx]; kx++; } ans[ix]='\0'; return (char *)ans; } Somethings seem HARD to do, until we know how to do them. ;-) _AnShUmAn_ -- modified at 7:13 Friday 19th May, 2006

                B 1 Reply Last reply
                0
                • B baldha rakesh

                  i am not able to understant about these function so anybody tell me about these funtion. i want to know what is the purpose of these function because i have to implement these function in own way. Thanks & Regards Banks

                  D Offline
                  D Offline
                  David Crow
                  wrote on last edited by
                  #8

                  It should be easy enough to implement your own itoa() function. It simply converts an integer to a string. Go through each digit of the integer using the % operator. If you have VC++ installed, you should already have the source to _itoa().


                  "The largest fire starts but with the smallest spark." - David Crow

                  1 Reply Last reply
                  0
                  • _ _AnsHUMAN_

                    What is the platform? I am providing the code for the operation of _itoa(*,**,10); * denotes integer variable ** denotes char* char *convertinttochar(int num) { int ix=0; int jx=0; int kx=0; int xones=0; char xtemp[5]; char xans[5]; while (num!=0) { xones=num%10; xtemp[i]=(char)(xones+48); num=num/10; ix++; } for(jx=ix-1;jx>=0;jx--) { ans[kx]=temp[jx]; kx++; } ans[ix]='\0'; return (char *)ans; } Somethings seem HARD to do, until we know how to do them. ;-) _AnShUmAn_ -- modified at 7:13 Friday 19th May, 2006

                    B Offline
                    B Offline
                    baldha rakesh
                    wrote on last edited by
                    #9

                    i don't want code for itoa . i have to implement _itot(...). this function called on windows like this : _itot(++nNumber, szNumber + 1, 10); so can you explain me what is the purpose of this function _itot(...). Thanks & Regards Banks

                    1 Reply Last reply
                    0
                    Reply
                    • Reply as topic
                    Log in to reply
                    • Oldest to Newest
                    • Newest to Oldest
                    • Most Votes


                    • Login

                    • Don't have an account? Register

                    • Login or register to search.
                    • First post
                      Last post
                    0
                    • Categories
                    • Recent
                    • Tags
                    • Popular
                    • World
                    • Users
                    • Groups