Solved

what does the following do

Posted on 2006-06-25
5
245 Views
Last Modified: 2010-04-16
I have an example app i found on the web which uses the following line to create a command

cmd="\x02\x06\x33\x31\x30\x33\x03";

what does it actually do? Is there  a low level language being used?

Thanks!!
0
Comment
Question by:Halon
5 Comments
 
LVL 11

Accepted Solution

by:
Agarici earned 250 total points
ID: 16981714
it creates a string which contains the chars with those hex values: cmd[0] = 0x02, cmd[1] = 0x06, cmd[2] = 0x33 and so on (i can tell you that 0x33 is '!' 0x31 is '▼' and 0x30 is '▲' )

the basic idea is that you can use '\x' escape sequence to specify a char in a string by its hex value.

hth,
A.
0
 
LVL 4

Expert Comment

by:SmithJW
ID: 16982365
the string is just hex encoded character codes which you can look up here
http://www.lookuptables.com/

what else can you tell us about the sample code?
where is this command used?

no low level language is being used, but without some context its impossible to say what is actually happening.

0

Featured Post

Highfive + Dolby Voice = No More Audio Complaints!

Poor audio quality is one of the top reasons people don’t use video conferencing. Get the crispest, clearest audio powered by Dolby Voice in every meeting. Highfive and Dolby Voice deliver the best video conferencing and audio experience for every meeting and every room.

Join & Write a Comment

Article by: Ivo
C# And Nullable Types Since 2.0 C# has Nullable(T) Generic Structure. The idea behind is to allow value type objects to have null values just like reference types have. This concerns scenarios where not all data sources have values (like a databa…
This article is for Object-Oriented Programming (OOP) beginners. An Interface contains declarations of events, indexers, methods and/or properties. Any class which implements the Interface should provide the concrete implementation for each Inter…
This video discusses moving either the default database or any database to a new volume.
In this seventh video of the Xpdf series, we discuss and demonstrate the PDFfonts utility, which lists all the fonts used in a PDF file. It does this via a command line interface, making it suitable for use in programs, scripts, batch files — any pl…

708 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

20 Experts available now in Live!

Get 1:1 Help Now