C and C++

Moderators: None (Apply to moderate this forum)
Number of threads: 28629
Number of posts: 94611

This Forum Only
Post New Thread
Single Post View       Linear View       Threaded View      f

Report
size_t Posted by Gregry2 on 24 Jul 2006 at 6:04 PM
i'm just wondering if anyone knows of any platform existant today in which !(sizeof(size_t)>1). Any platform means any.
{2}rIng
Report
Re: size_t Posted by tsagld on 24 Jul 2006 at 11:47 PM
: 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


Report
Re: size_t Posted by IDK on 25 Jul 2006 at 1:37 AM
: : 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.
Report
Re: size_t Posted by Gregry2 on 25 Jul 2006 at 7:52 AM
: : : 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





 

Recent Jobs

Official Programmer's Heaven Blogs
Web Hosting | Browser and Social Games | Gadgets

Popular resources on Programmersheaven.com
Assembly | Basic | C | C# | C++ | Delphi | Flash | Java | JavaScript | Pascal | Perl | PHP | Python | Ruby | Visual Basic
© Copyright 2011 Programmersheaven.com - All rights reserved.
Reproduction in whole or in part, in any form or medium without express written permission is prohibited.
Violators of this policy may be subject to legal action. Please read our Terms Of Use and Privacy Statement for more information.
Operated by CommunityHeaven, a BootstrapLabs company.