Re: sscanf in c#




"AMP" <ampeloso@xxxxxxxxx> wrote in message
news:1158702904.487132.326350@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
| Also, theres this qualifier (3), which is the max number to read, in
| the following that I would have to deal with.
| sscanf(strdata[linepos], "%3x", blkout[dataframelen]);
|
| I appreciate EVERONES help with this.
|
|
string strdata = " ffc2fffe Hello ";
uint hexVal;
UInt32.TryParse(installResult.Substring(1, 3), NumberStyles.HexNumber, null,
out hexVal);

hexVal will contain 000000ffc;

But why don't you read the docs and try yourself?, it takes 5 minutes to
test all your cases, waiting for an answer may take hours.

Willy.



.



Relevant Pages

  • Re: OT Hillary backs 55 mph speed limit
    ... Theres some evidence to suggest that people get bored if waiting at a ... level crossing for more than 20seconds and some ludicrously large ...
    (alt.autos.toyota)
  • Re: Vlookup nightmare
    ... theres a TOP qualifier in Access.. ... I am a diehard MSDE-ADP guy... ... 'real DBMS' with Access all day long. ...
    (microsoft.public.excel)
  • Re: Something I just thought of
    ... I'm waiting for the Watchmen dvd before I see it. ... Theres no way I can sit ... still for the length of the movie. ...
    (rec.sport.pro-wrestling)
  • Re: Onza Trials UNI??
    ... Holy crap, stop that already! ... Theres already enough people waiting on ... Brian O.'s Profile: http://www.unicyclist.com/profile/10744 ...
    (rec.sport.unicycling)
  • Re: repeated multiple part downloads in OE
    ... Theres a old app called that lets you login and see ... the email waiting to be downloaded. ... The app lets you delete any problem email on the server. ...
    (uk.comp.misc)

Loading