by "Daniel T." <daniel_t@[EMAIL PROTECTED]
>
Mar 5, 2008 at 07:07 PM
yogi_bear_79 <yogi_bear_79@[EMAIL PROTECTED]
> wrote:
> I get three errors with the below code snippet. Can someone help me
> with the syntax?
>
> char *month = strtok_s(longDate, " ", &nextToken);
> switch ( *month )
> {
> case 'March':
You have too many characters in the above constant.
> a = 1;
> break;
> case 'April':
You have too many characters in the above constant.
> a = 2;
> break;
> case 'May':
You have too many characters in the above constant.
> a = 3;
> break;
> default:
> break;
> }
Read about the difference in using the single quote character as opposed
to the double quote character.