Search:

Type: Posts; User: MMC

Search: Search took 0.01 seconds.

  1. Replies
    9
    Views
    3,446

    Thanks Everyone !!!

    Thanks Everyone !!!
  2. Replies
    9
    Views
    3,446

    I'm able to use num = *((char*)...

    I'm able to use
    num = *((char*) buffer_input+44);
    printf("num:%X\n",num);
    printf("num:%d\n",num);

    I used char instead of int ...
    This gives me the hex and integer value...
  3. Replies
    9
    Views
    3,446

    Swoopy, I tried and suggestions and I'm now able...

    Swoopy, I tried and suggestions and I'm now able to display hex values............ at a certain positions.

    BUT....I still not able to set my position correctly.

    Ex.
    int num;
    num = *((int *)...
  4. Replies
    9
    Views
    3,446

    Thanks Swoopy ! I'll give that a try and post my...

    Thanks Swoopy !
    I'll give that a try and post my results.
  5. Replies
    9
    Views
    3,446

    Thanks Stoned_coder But what I think I'm...

    Thanks Stoned_coder

    But what I think I'm looking for is

    Positions/bytes in my buffer
    1234...............................................................38
    ...
  6. Replies
    9
    Views
    3,446

    Looking to extract a hex value out of a buffer

    I did received help on how to display a hex value.
    I'm now looking for a way to extract a hex value out of a buffer.

    Ex.

    I have a buffer( 200 bytes long).
    The first 38 bytes contains rt,...
  7. Replies
    4
    Views
    1,836

    Swoopy...I was just speaking with someone...

    Swoopy...I was just speaking with someone concerning my last post.
    I guess what I'm really trying to do is......

    Read ...say the first 200 characters into a buffer.
    Within that buffer, is...
  8. Replies
    4
    Views
    1,836

    Thanks

    Thanks Swoopy

    I was able to display the hex values !

    My next step, I will try to incorporate this logic when reading a file with different data types.

    Example

    pos 1-10 = router
    pos 11-29...
  9. Replies
    4
    Views
    1,836

    How to ...read in a hex value and display

    I'm trying to read in a hex value and display that value....any thoughts on how I can modify the following code.
    Thanks in advance

    File layout...
  10. Trouble reading a hex value, displaying via printf and writing to a file

    I'm trying to read a file that has hex values. I fread into a buffer, but I'm have trouble displaying the values via printf. Also, when I try to write the buffer, I'm getting one 0.

    Any...
  11. Using fwrite to create a binary file....how to specify fields within the record

    The following is code that works and sends "size" to my output file. My question is ...

    I do want size to be outputted, but I also want additional information, such as fields from the...
Results 1 to 11 of 11