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

string null

 
Post new topic   Reply to topic    CCS Forum Index -> General CCS C Discussion
View previous topic :: View next topic  
Author Message
Marc
Guest







string null
PostPosted: Sun Jul 01, 2007 2:53 am     Reply with quote

I would like to know if in CCS compiler a string is terminated with \0 or 0 and if I use NULL instead of \0 or 0

Thank You
Pret



Joined: 18 Jul 2006
Posts: 92
Location: Iasi, Romania

View user's profile Send private message

PostPosted: Mon Jul 02, 2007 4:01 am     Reply with quote

Ofcourse. This is a standard C situation. Either you are using 0 or NULL is the same thing. Also you can use \0 into strings. If you'r declaring a string like "hello world", compiler puts automatically a NULL value as a last character. Thats the quotation marks (" ") behaviour.
Display posts from previous:   
Post new topic   Reply to topic    CCS Forum Index -> General CCS C Discussion All times are GMT - 6 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group