CCS C Software and Maintenance Offers
FAQFAQ   FAQForum Help   FAQOfficial CCS Support   SearchSearch  RegisterRegister 

ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

CCS does not monitor this forum on a regular basis.

Please do not post bug reports on this forum. Send them to CCS Technical Support

Search found 5 matches
CCS Forum Index
Author Message
  Topic: sizeof() returning strange result
eximo

Replies: 9
Views: 12802

PostForum: General CCS C Discussion   Posted: Mon Apr 21, 2014 8:15 am   Subject: Thank You
Thank You Very Happy
  Topic: sizeof() returning strange result
eximo

Replies: 9
Views: 12802

PostForum: General CCS C Discussion   Posted: Fri Apr 18, 2014 9:46 am   Subject: Array size function
Does the CCS compiler have a method of determining the size of an array that was defined in another function and passed as a pointer? The way strlen works except determines the size of the full array ...
  Topic: sizeof() returning strange result
eximo

Replies: 9
Views: 12802

PostForum: General CCS C Discussion   Posted: Fri Apr 18, 2014 7:45 am   Subject: sizeof() compile time function?
I'm reading forum posts for C, there is indication that sizeof() is a compile time function and can only be used in the function where the array is orginally defined, that it an not be used in a daugh ...
  Topic: sizeof() returning strange result
eximo

Replies: 9
Views: 12802

PostForum: General CCS C Discussion   Posted: Fri Apr 18, 2014 7:06 am   Subject: I would tend to agree
There isn't any documentation on sizeof() but I've spent hours running just about every permutation of reference or deference for the sizeof(array) function. I'm sure the array is being passed to the ...
  Topic: sizeof() returning strange result
eximo

Replies: 9
Views: 12802

PostForum: General CCS C Discussion   Posted: Thu Apr 17, 2014 3:41 pm   Subject: sizeof() returning strange result
Problem is sizeof(array) is returning 2 when strlen(array) is returning 9.

sizeof(array does return the correct value until the array is passed to a function)

I expect since the string that is i ...
 
Page 1 of 1
All times are GMT - 6 Hours
Jump to:  


Powered by phpBB © 2001, 2005 phpBB Group