Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

Hexadecimals into buffer

Posted on 2000-04-03
2
Medium Priority
?
243 Views
Last Modified: 2011-09-20
Hi, I have a long hexadecimal "string"  (08e4d30102, but longer) that I want to have into a bufer called buf. Its instatiated as

    UCHAR  buf[1514];

How do I do it?

0
Comment
Question by:mdoland
2 Comments
 
LVL 32

Accepted Solution

by:
jhance earned 200 total points
ID: 2681829
How about:

strcpy(buf, [wherever the string is now]);

0
 

Author Comment

by:mdoland
ID: 2681867
It worked! Sleepy me. Thanks
0

Featured Post

What does it mean to be "Always On"?

Is your cloud always on? With an Always On cloud you won't have to worry about downtime for maintenance or software application code updates, ensuring that your bottom line isn't affected.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Have you thought about creating an iPhone application (app), but didn't even know where to get started? Here's how: ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ Important pre-programming comments: I’ve never tri…
Examines three attack vectors, specifically, the different types of malware used in malicious attacks, web application attacks, and finally, network based attacks.  Concludes by examining the means of securing and protecting critical systems and inf…
Video by: Grant
The goal of this video is to provide viewers with basic examples to understand and use for-loops in the C programming language.
The goal of this video is to provide viewers with basic examples to understand how to create, access, and change arrays in the C programming language.
Suggested Courses

916 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