BigDinTheMornin's Profile User Rating: -----

Reputation: 6 Worker
Group:
Active Members
Active Posts:
57 (0.03 per day)
Joined:
21-June 09
Profile Views:
4,479
Last Active:
User is offline Jun 26 2015 10:46 AM
Currently:
Offline

Previous Fields

Country:
US
OS Preference:
Who Cares
Favorite Browser:
Chrome
Favorite Processor:
Intel
Favorite Gaming Platform:
XBox
Your Car:
Ford
Dream Kudos:
0

Latest Visitors

Icon   BigDinTheMornin Command and Conquer

Posts I've Made

  1. In Topic: Format IP Addresses

    Posted 19 Jun 2015

    View PostMartyr2, on 18 June 2015 - 05:50 PM, said:

    Can you not do something like...

    char ipAddress[16];
    
    sprintf(ipAddress,"%d.%d.%d.%d", setup.ip[0], setup.ip[1], setup.ip[2], setup.ip[3]);
    
    


    Ideally something like this would put the integers into the string with the periods, forms one string and then puts it into the ipAddress string. It also auto appends the string terminator.

    If you are not in visual studio I also recommend using the snprintf version instead. :)/>


    I don't know why I didn't think of that but I'm glad you did. Thank you for the quick response Martyr2! =D

My Information

Member Title:
D.I.C Head
Age:
24 years old
Birthday:
August 9, 1991
Gender:
Location:
California
Interests:
Finding solutions to the problems I encounter.
Firmware.
Gym.
Ladies.
Full Name:
Derrek Velazquez
Years Programming:
6
Programming Languages:
C++, Java, Python

Contact Information

E-mail:
Click here to e-mail me

Friends

Comments

BigDinTheMornin has no profile comments yet. Why not say hello?