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...
Ok, thanx, now I got it.
That worked, but what I did instead was take the original int value of fport and did my magic.
how I did it was
int uport; //upper order byte - will be no decimal value
int lport; //lower order byte
uport = fport /256; //set up the upper byte
lport = fport - (uport *...
I'm not quite sure how I get 2 bytes back with that.
I have to send back the bytes to the client. Will the above give me "8367" = 32 for the upper byte and 175 for the lower byte?
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";
}
...
that works but it changes the original value
I tried
char *before, *after, *hold;
hold = source_p->info;
before = strtok (hold, "^");
after = strtok (NULL, "^");
and it still changes the contents of source_p->info
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...
using what you had, i had to set i as int before the for because gcc didnt like the int = 0 in the for loop
the code only checked first letter then, dont think the temp is going to next character so i added temp++ at end of for with no luck
i removed the break because it would crash after the...
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...
actually i had to do
@Abs(@Integer((@Today - @Modified) / (60 * 60 * 24)))
The 60 60 24 i did just to remind me how we got the 84600
when i did yours, i got an expected number error
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.