• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 256
  • Last Modified:

what does the following do

I have an example app i found on the web which uses the following line to create a command


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

Winston Smith
Winston Smith
1 Solution
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.

the string is just hex encoded character codes which you can look up here

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.

Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Featured Post

Get your problem seen by more experts

Be seen. Boost your question’s priority for more expert views and faster solutions

Tackle projects and never again get stuck behind a technical roadblock.
Join Now