8bit / 16bit

From: Poison64 (poison64_at_op.pl)
Date: 06/26/04

  • Next message: Marlene Stebbins: "Re: [C] determining size of an array in a function"
    Date: Sat, 26 Jun 2004 14:23:07 +0200
    
    

    Hello,

        I'm writing a cross-platform application, and I need
        a type which will be guaranteed to be 8 bit long on
        every platform (windows,linux,dos, etc.). The first
        type which came into my mind was unsigned char,
        and as far as I know, it will always be 8 bit.

        Is there an unsigned type that will always be 16 bit?

        thx in advance,

        p.s. hmm, when I'm writing something in english, I have
        this strange feeling that I've made a lot of mistakes :))) (PL)

    -- 
        Poison64
        http://www.poison64.prv.pl/
    

  • Next message: Marlene Stebbins: "Re: [C] determining size of an array in a function"

    Relevant Pages

    • Re: porting issues ?
      ... Have you ever worked on a platform where CHAR_BIT was NOT 8? ... doing a lot of work on a TI 2812 DSP right now where CHAR_BIT is 16. ... significant bits an unsigned char and ignore anything else. ... The value of CHAR_BIT is not much of a deterrent to portable code if ...
      (comp.lang.c)
    • Target Control not running (WCE 5.00, PXA255)
      ... my platform is starting to give me some life-signs. ... BasePrio KernelTime UserTime Quantum QuantuLeft ... NK!SC_WaitForMultiple(unsigned long 0x00000001, void * const * ... NK!EdbgRecv(unsigned char 0x01, unsigned char * 0x01feb500, ...
      (microsoft.public.windowsce.platbuilder)
    • Re: copying C structures acroos different processors
      ... Will there be any issue due to the byte packing strategy used by ... If I need to copy this structure to shared memory if I calculated ... If you find that you later need to support a platform which doesn't ...
      (comp.lang.c)
    • Re: How widespread is usage of "Mind the Gap"?
      ... Going into London on SWT this morning, I noticed "mind the gap" ... At most stations it was a standard "mind the gap between the train ... "mind the step down from the train to the platform". ... it's academic at Queens Road Battersea as there has only been one up ...
      (uk.transport.london)
    • Re: How widespread is usage of "Mind the Gap"?
      ... certain that announcements are made on Platform 17 at Clapham Junction ... Orwellian bark 'Mind the gap!' ... Not sure which one they have at Bank ... The 80s voice was that of the late Simon Cadell, ...
      (uk.railway)