Hi,

I have code that uses a lot of wide character functions like: wcscpy,
wcscmp. LClint does recognize the identifier L. I know that the functions
wcscpy, wcscmp, wprintf are ANSI compatible, but not sure about the
identifier L.

Any hints or tips on how to handle the identifier L.?

Thanks, Arjan

The sample code below gives the following LClint output:
G:\>lclint -f c:\lclint-2.5q\bin\lclintrc.ini test.c
LCLint 2.5q --- 26 July 2000

test.c: (in function main)
test.c(9,20): Unrecognized identifier: L
  Identifier used in code has not been declared. (-unrecog will suppress
  message)
test.c(9,37): Parse Error. (For help on parse errors, see lclint -help
             parseerrors.)
*** Cannot continue.

Using the -unrecog

G:\>lclint -f c:\lclint-2.5q\bin\lclintrc.ini test.c
LCLint 2.5q --- 26 July 2000

test.c(9,37): Parse Error. (For help on parse errors, see lclint -help
               parseerrors.)
*** Cannot continue.


#include <stdio.h>
#include <stdlib.h>
#include <string.h>

int main(/*@unused@*/int argc, /*@unused@*/char* argv[])
{
   wchar_t wString[255];

   wcscpy(wString, L"My Wide String");

   (void)wprintf(L"wString = %s\n", wString);

   return 0;
}




Reply via email to