I want to take the ip i obtained and put it into a string that i can manipulate but i always get passing argument makes pointer from integer without a cast. I am currently using lynix with gcc as my compiler here is the current code
the strcpy and sscanf lines is where it errors, it seems to...
I am writing a modified udp server, and i almost have it working the way I want, I am only missing the ability to take a string like "8367" and have 2 bytes 32 175 returned
the string is the port # I obtained from the udp server if that helps.
Here is what I have at the moment
#include...
I am trying to convert a numerical string to its hex equivelent.
Say for instance
if $u = "1"
i want $h = "01"
if $u = "10"
$h = "0a"
and so on
The $u will never go above 255
There ha to be a better way
at moment i have
if ($u < 10) {
$h = "0".$h;
}
if ($u == 10) {
$h = "0a";
}
...
I need a way to determine a text string if it is ok or not
examples
id's can be any hex number up to ffffffff
a = bad missing ^id
^0 = bad missing name before ^id
Tron^0 =0k valid name and id
John^48d7cf5 =ok valid name an id
Tonka^0^MAKIABDCCBOC/ZONA.SIT/circuit/+/4/1,8 = ok hosting game...
I am a newbee in C / C++
I currently have the current IRC Hybrid server 7.2.3 working successfully.
I would like to modify it just a little to only allow names that are 12 characters in length and are all uppercase letters between A and P
I have the length test working great, that wasnt to hard...
I moved to a new position which has a Domino Server version 4.6. We have one database that we wish specific records not to be able to be updated unless at least 1 week has past since it was updated last.
There is a date field already in the database using @now
Soo,if that old date is less than...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.