size_t - Programmers Heaven

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Categories

Welcome to the new platform of Programmer's Heaven! We apologize for the inconvenience caused, if you visited us from a broken link of the previous version. The main reason to move to a new platform is to provide more effective and collaborative experience to you all. Please feel free to experience the new platform and use its exciting features. Contact us for any issue that you need to get clarified. We are more than happy to help you.

size_t

Gregry2Gregry2 Posts: 607Member
i'm just wondering if anyone knows of any platform existant today in which !(sizeof(size_t)>1). Any platform means any.
{2}rIng

Comments

  • tsagldtsagld Posts: 621Member
    : i'm just wondering if anyone knows of any platform existant today in which !(sizeof(size_t)>1). Any platform means any.
    : {2}rIng
    :
    I can't imagine such a platform exists. size_t is (at least) an integer, thus 2 bytes on 16-bits platforms.


    Greets,
    Eric Goldstein
    http://www.gvh-maatwerk.nl


  • IDKIDK Posts: 1,784Member
    : : i'm just wondering if anyone knows of any platform existant today in which !(sizeof(size_t)>1). Any platform means any.
    : : {2}rIng
    : :
    : I can't imagine such a platform exists. size_t is (at least) an integer, thus 2 bytes on 16-bits platforms.
    :
    :
    : Greets,
    : Eric Goldstein
    : http://www.gvh-maatwerk.nl
    :
    :
    :
    In 8-bit proccessors an integer should be 1 byte, and therefor size_t should be the same.
  • Gregry2Gregry2 Posts: 607Member
    : : : i'm just wondering if anyone knows of any platform existant today in which !(sizeof(size_t)>1). Any platform means any.
    : : : {2}rIng
    : : :
    : : I can't imagine such a platform exists. size_t is (at least) an integer, thus 2 bytes on 16-bits platforms.
    : :
    : :
    : : Greets,
    : : Eric Goldstein
    : : http://www.gvh-maatwerk.nl
    : :
    : :
    : :
    : In 8-bit proccessors an integer should be 1 byte, and therefor size_t should be the same.
    :

    I was thinking of that. I'm just trying to make portable code, but porting to such a platform (a microcontroller) doesn't seem neccessary, I doubt a such a thing would need a bignum lib (it doesn't deserve such a classification, midnum sounds better ;-) )

    {2}rIng


Sign In or Register to comment.