CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 2 of 2
  1. #1
    Join Date
    Jun 2000
    Location
    austin
    Posts
    101

    function to convert string (in hex format) to int?

    i know there is a function convert a string in hex format (i.e. "0x00ff0000") into an int. but i'm on linux now and don't have my beloved msdn to help me! could someone please give me the function declaration, what header file its declared in, and what libaray its defined in? thank you. also, are there any good message boards for linux programming? or linux questions in general? making the transition from windows developement to linux developement is tough...=( thank you for your help.

    -christopher bottaro
    [email protected]
    [email protected]
    [email protected]

  2. #2
    Join Date
    May 2000
    Location
    Toronto, ON, Canada
    Posts
    3,573

    Re: function to convert string (in hex format) to int?

    Hi,

    #include <stdlib.h>
    char *_itoa( int value, char *string, int radix );// Convert an integer to a string
    char *_ltoa( long value, char *string, int radix );// Convert a long integer to a string


    Tell me if that help.

    Regards,
    Emi.
    Regards,

    Emanuel Vaduva

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  





Click Here to Expand Forum to Full Width

Featured