Essential type of wchar_t?

Moderators: misra-c, david ward

Post Reply
sca2012
Posts: 4
Joined: Thu Mar 20, 2014 2:50 pm
Company: Klocwork

Essential type of wchar_t?

Post by sca2012 » Fri Nov 21, 2014 3:18 pm

What is the essential category and rank of (implementation dependent) C99 type wchar_t?

misra-c
Posts: 566
Joined: Thu Jan 05, 2006 1:11 pm

Re: Essential type of wchar_t?

Post by misra-c » Fri Dec 05, 2014 9:20 am

Appendix D.1 lists the mapping of standard types to essential type categories. wchar_t is an implementation-defined integer type. It will therefore map to either an essentially signed or unsigned type depending on the implementation. Its rank will be that of its implementation.

Future versions of the MISRA guidelines are likely to define a specific essential type for wchar_t.
---
Posted by and on behalf of
the MISRA C Working Group

Post Reply

Return to “8.10 The essential type model”