Thread: a simple question (Noob)

  1. #1
    Registered User
    Join Date
    Jan 2011

    a simple question (Noob)

    I have this array: uint8_t *datapointer

    On this array I have 4 useless bytes that I don't need (just skip them)
    After that, I have a string (terminated by 0), I need to print it out.
    after that, another 4 useless bytes.
    and after that, an int that I need to print too...

    how do I that?

  2. #2
    Join Date
    Aug 2010
    Ontario Canada
    WOW... talk about impatient!

    Stop and give this some thought... really, you can figure this out on your own... it's painfully easy.

  3. #3
    and the hat of int overfl Salem's Avatar
    Join Date
    Aug 2001
    The edge of the known universe
    Same Q at the end of this thread.
    printing bytes from memory (NOOB question)
    If you dance barefoot on the broken glass of undefined behaviour, you've got to expect the occasional cut.
    If at first you don't succeed, try writing your phone number on the exam paper.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Simple question with programming
    By eihn in forum C++ Programming
    Replies: 2
    Last Post: 01-18-2010, 06:09 PM
  2. Simple pointer question but i'm a noob
    By tesla in forum C++ Programming
    Replies: 2
    Last Post: 09-20-2009, 02:12 AM
  3. Simple question about pausing program
    By Noid in forum C Programming
    Replies: 14
    Last Post: 04-02-2005, 09:46 AM
  4. Binary Search Trees Part III
    By Prelude in forum A Brief History of
    Replies: 16
    Last Post: 10-02-2004, 03:00 PM
  5. simple noob question
    By NiVaG in forum Linux Programming
    Replies: 5
    Last Post: 09-28-2004, 06:56 PM