Re: What does this mean?



prabu wrote:

I want to know, what does the value of the array in the following
statement mean

well its an array of unsigned char, initialised with a string. The
string
contains hex values. It includes nul characters ('\0') so you can't
manipulate it using str* functions.

I'm not sure what you mean by "what does the value of the array
"mean"".
How can a value "mean" anything? Some of it could be ASCII try
translating it.

and How to print the content of the array SMB_Negotiate
using printf?

a for loop and %x format specification?


unsigned char SMB_Negotiate[] =

"\x00\x00\x00\x85\xFF\x53\x4D\x42\x72\x00\x00\x00\x00\x18\x53\xC8"
"\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\xFF\xFE"
"\x00\x00\x00\x00\x00\x62\x00\x02\x50\x43\x20\x4E\x45\x54\x57\x4F"

<snip>


--
Nick Keighley

A ruby trembled. Two tourmaline nets failed to rectify the laser beam.
A diamond noted the error. Both the error and the correction went into
the general computer.
Corwainer Smith "The Dead Lady of Clown Town"

.



Relevant Pages

  • Re: Replacing " . " for " .. " Only in windows!
    ... Actually, he didn't say the string contains NUL characters, he just said it wasn't ... You could do this by walking through the array once ... and nDestinationIndex for place in second array. ...
    (microsoft.public.vc.mfc)
  • Help in French|Spanish|German translation.
    ... I am also an author of User-defined string functions. ... WORDTRANEX (cSearched, cArExpressionSought | cExpressionSough, ... each string of the array is searched ... If the parameter nArStartOccurrence is -1 or omitted, the replacement starts ...
    (microsoft.public.fox.helpwanted)
  • Re: passing a string to a dll
    ... Joe, I really appreciate you taking the time to demonstrate this. ... sure how I would implement indexing it for random alphanumeric codes. ... I might handle the array. ... I actually have been wondering if I could use a second string ...
    (microsoft.public.vc.mfc)
  • Re: passing a string to a dll
    ... I might handle the array. ... I actually have been wondering if I could use a second string ... look at insertion cost, organization cost, and search cost. ...
    (microsoft.public.vc.mfc)
  • RE: Structure conversion from C++ to VB-2008?
    ... One of the most important structures is AmiVar structure. ... point number, the array of floating point numbers, a string or IDispatch ... Dim 13012679 as Integer ...
    (microsoft.public.dotnet.languages.vb)