Skip to main content

All Questions

2 votes
2 answers
9k views

printf unknown specifier %S

I am trying to get a sample code working and it uses the following lines: WCHAR cBuf[MAX_PATH]; GetSharedMem(cBuf, MAX_PATH); printf("Child process read from shared memory: %S\n", cBuf); ...
mugetsu's user avatar
  • 4,418
8 votes
4 answers
9k views

Is there a format specifier that always means char string with _tprintf?

When you build an app on Windows using TCHAR support, %s in _tprintf() means char * string for Ansi builds and wchar_t * for Unicode builds while %S means the reverse. But are there any format ...
hippietrail's user avatar
  • 17.1k