Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Search results for query: *

  • Users: tomchesley
  • Content: Threads
  • Order by date
  1. tomchesley

    IP to string and break down the string

    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...
  2. tomchesley

    String to 2 bytes

    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...
  3. tomchesley

    String to hex

    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"; } ...
  4. tomchesley

    more string checking

    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...
  5. tomchesley

    Check contents of string pointer

    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...
  6. tomchesley

    Disable update of specific records

    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...

Part and Inventory Search

Back
Top