Viresh Kumar wrote:
> > struct foo {
> >       ....
> >       char array[5];
> > 
> > };
> 
> I am not adding '\0' in my string at all. Is this '\0' always added by
> compiler, even in above situation?

The compiler does not add the trailing '\0'. It is added only by the string 
manipulation functions, as for example sprintf.

Regards

_______________________________________________
linaro-toolchain mailing list
linaro-toolchain@lists.linaro.org
http://lists.linaro.org/mailman/listinfo/linaro-toolchain

Reply via email to