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: Return struct from a function.
xMerlin

Replies: 5
Views: 18063

PostForum: General CCS C Discussion   Posted: Fri Mar 09, 2018 7:08 am   Subject: Return struct from a function.
Aha. And the required inclusion of stdlibm.h is stated so clearly in the help file. Embarassed Thank you.

Is there any obvious advantage of using pointers in this case vs just passing the entire struc ...
  Topic: Return struct from a function.
xMerlin

Replies: 5
Views: 18063

PostForum: General CCS C Discussion   Posted: Fri Mar 09, 2018 4:43 am   Subject: Return struct from a function.
Thanks. First case is clear now. And rather obvious, I'm ashamed to admit.

As for the second, would this then work properly?

struct tmr_246_config {
int txcon;
int prx;
} ...
  Topic: Return struct from a function.
xMerlin

Replies: 5
Views: 18063

PostForum: General CCS C Discussion   Posted: Fri Mar 09, 2018 3:33 am   Subject: Return struct from a function.
Hi,

Using v5.073 version of the PICC compiler on a PIC16LF1827 here. And am facing a problem when trying to return a structure from a function call. According to Error#27 Expression must evaluate ...
  Topic: File inclusion into MPLABX project and use of static keyword
xMerlin

Replies: 8
Views: 20899

PostForum: General CCS C Discussion   Posted: Tue Jan 30, 2018 1:19 pm   Subject: File inclusion into MPLABX project and use of static keyword
Thank you everyone!

If I understood you all properly then this is what I got out of this discussion so far:

(A)
While CCSC does support multiple compilation units, they are rarely needed (after ...
  Topic: File inclusion into MPLABX project and use of static keyword
xMerlin

Replies: 8
Views: 20899

PostForum: General CCS C Discussion   Posted: Tue Jan 30, 2018 9:26 am   Subject: File inclusion into MPLABX project and use of static keyword
Hi,

While I have been using CCS (mostly PCH) for a while now, I never took the time to learn how to do it properly. The time has finally come. And what better place to learn than this forum. I am c ...
 
Page 1 of 1
All times are GMT - 6 Hours
Jump to:  


Powered by phpBB © 2001, 2005 phpBB Group